<!-- ..................Index Page....................... -------->
function MM_timelinePlay(tmLnName, myID){

  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  
  if(document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  
  tmLn = document.MM_Time[tmLnName];
  
  if(myID == null){ 			//if new call, incr ID
     myID = ++tmLn.ID; firstTime=true;
     }
  
  if(myID == tmLn.ID){ //if Im newest
    setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
    fNew = ++tmLn.curFrame;
    for(i=0; i<tmLn.length; i++){
      sprite = tmLn[i];
      if(sprite.charAt(0)=='s'){
        if(sprite.obj){
          numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
          if(fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]){//in range
            keyFrm=1;
            for(j=0; j<sprite.values.length; j++){
              props = sprite.values[j];
              if(numKeyFr != props.length){
                if(props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
                else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
                }
              else{
                while(keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
                if(firstTime || fNew==sprite.keyFrames[keyFrm-1]){
                  if(props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
                  else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
        } } } } }
      } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
      if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  } }
}

function MM_timelineStop(tmLnName){
  if(document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  if(tmLnName == null)  //stop all
    for(var i=0; i<document.MM_Time.length; i++) document.MM_Time[i].ID = null;
  else document.MM_Time[tmLnName].ID = null; //stop one
  }

function MM_preloadImages(){
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  }

function MM_findObj(n, d){
  var p,i,x;
  if(!d) d=document;
  if((p=n.indexOf("?"))>0&&parent.frames.length){
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
    }
    
  if(!(x=d[n])&&d.all) x=d.all[n];
  
  for (i=0;!x&&i<d.forms.length;i++)
    x=d.forms[i][n];
  
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) 
    x=MM_findObj(n,d.layers[i].document);
    
  return x;
  }

function MM_showHideLayers(){
  var i, p, v, obj, args=MM_showHideLayers.arguments;
  
  for(i=0; i<(args.length-2); i+=3)
   if((obj=MM_findObj(args[i]))!=null){
    v=args[i+2];
    if(obj.style){
      obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v;
      }
    obj.visibility=v;
    }
  }
  
function MM_reloadPage(init){  			//reloads the window if Nav4 resized
  if(init==true) with (navigator){
    if((appName=="Netscape")&&(parseInt(appVersion)==4)){
      document.MM_pgW=innerWidth;
      document.MM_pgH=innerHeight;
      onresize=MM_reloadPage;
      }
    }
  else if(innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH){
    location.reload();
    }
  MM_reloadPage(true);  
  }


<!-- ..................Feedback form....................... -------->
function validate1(){
  str =  new String(eCIPL_FEEDBACK.email.value)
  if(str.length == 0){
     alert("Please give the email id !!");
     eCIPL_FEEDBACK.email.focus();
     return false;
     }
  for(i=0;i<str.length;i++){
     val = str.substring(i,i+1)
     if(val == " "){
        alert("Please give the email id !!");
        eCIPL_FEEDBACK.email.focus();
        return false;
	}
     }
  return true;
  }

function validate(){
  if(document.eCIPL_FEEDBACK.firstname.value == ""){
     alert("Please provide the First Name!!");
     eCIPL_FEEDBACK.firstname.focus();
     return false;
     }
  else if(document.eCIPL_FEEDBACK.lastname.value == ""){
     alert("Please provide the Last Name!!");
     eCIPL_FEEDBACK.lastname.focus();
     return false;
     }
  else if(document.eCIPL_FEEDBACK.organization.value == ""){
     alert("Please provide the Organization name!!");
     eCIPL_FEEDBACK.organization.focus();
     return false;
     }
  else if(validate1() == false){
     return false;
     }     
  else if(emailCheck() == false){
     return false;
     }
  else
     document.eCIPL_FEEDBACK.action = "feedbackresult.asp";
     document.eCIPL_FEEDBACK.submit();
     return true;
  }

function reset(){
  document.eCIPL_FEEDBACK.reset(this.form); 
  }
  
function newWindow(mypage,myname,w,h){
  if(screen.width){
    var winl = (screen.width-w)/2;
    var wint = (screen.height-h)/2;
    }
  else{
    winl = 0;wint =0;
    }
  if(winl < 0) winl = 0;
  if(wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += 'menubar=0,';
  settings += 'toolbar=0,';
  settings += 'location=0,';
  settings += 'status=0,';
  settings += 'scrollbars=1,';
  settings += 'resizable=1,';
  win = window.open(mypage,myname,settings);
  win.window.focus();
  }

function emailCheck(){
 var emailStr = eCIPL_FEEDBACK.email.value
 var checkTLD=1;
 var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;
 var emailPat=/^(.+)@(.+)$/;
 var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";
 var validChars="\[^\\s" + specialChars + "\]";
 var quotedUser="(\"[^\"]*\")";
 var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
 var atom=validChars + '+';
 var word="(" + atom + "|" + quotedUser + ")";
 var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
 var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");
 var matchArray=emailStr.match(emailPat);
 
 if(matchArray==null){
   alert("Email address seems incorrect (check @ and .'s)");
   return false;
   }

 var user=matchArray[1];
 var domain=matchArray[2];

 for(i=0; i<user.length; i++){
   if(user.charCodeAt(i)>127){
      alert("Ths username contains invalid characters.");
      return false;
      }
   }
   
 for(i=0; i<domain.length; i++){
   if(domain.charCodeAt(i)>127){
      alert("Ths domain name contains invalid characters.");
      return false; 
      }
   }

if(user.match(userPat)==null){
   alert("The username doesn't seem to be valid.");
   return false;
   }

var IPArray=domain.match(ipDomainPat);
 if(IPArray!=null){
  for (var i=1;i<=4;i++){
   if(IPArray[i]>255){
     alert("Destination IP address is invalid!");
     return false;
     }
   }
  return true;
  }

 var atomPat=new RegExp("^" + atom + "$");
 var domArr=domain.split(".");
 var len=domArr.length;

 for (i=0;i<len;i++){
  if(domArr[i].search(atomPat)==-1){
    alert("The domain name does not seem to be valid.");
    return false;
    }
  }

 if(checkTLD && domArr[domArr.length-1].length!=2 && domArr[domArr.length-1].search(knownDomsPat)==-1){
   alert("The address must end in a well-known domain or two letter " + "country.");
   return false;
   }

 if(len<2){
  alert("This address is missing a hostname!");
  return false;
  }

 return true;
 }
 
var ns4 = (document.layers)? true:false;
var ie4 = (document.all)? true:false;
var waitTime = 1000;
var obj, p;

function setContent(name, value){
  var d;
  d = (ie4) ? document.all[name] : document.getElementById(name);
  d.innerHTML = value;
  }

function getContent(name){
  var d;
  d = (ie4) ? document.all[name] : document.getElementById(name);
  return d.innerHTML;
  }

function setColor(name, value){
  var d;
  d = (ie4) ? document.all[name] : document.getElementById(name);
  d.style.color = value;
  }

function getColor(name){
  var d;
  d = (ie4) ? document.all[name] : document.getElementById(name);
  return d.style.color;
  }

function animate(){
  var name= "animate";
  var col = "#F78E4F";
  var value = getContent(name);
  if(value.indexOf('<span') >= 0) return;
  var length = 0;
  var str = '';
  var ch;
  var token = '';
  var htmltag = false;
  
  for(i = 0; i < value.length; i++){
    ch = value.substring(i, i+1);
    nextch = (i < value.length - 1) ? value.substring(i+1, i+2) : ' ';
    token += ch;
    if(ch == '<' && '/aAbBpPhHiIoOuUlLtT'.indexOf(nextch) >= 0) htmltag = true;
    if(ch == '>' && htmltag) htmltag = false;
    if(!htmltag && ch.charCodeAt(0) > 30 && ch != ' ' && ch != '\n'){
      str += '<span id="' + name + '_' + length + '">' + token + '</span>';
      token = '';
      length++;
      }
    }
  setContent(name, str);
  command = 'animateloop(\'' + name + '\', ' + length + ', 0, 0, 1, \'' + col + '\')';
  setTimeout(command , 100);
  }

function animateloop(name, length, counter, ind, delta, col){
  var next = ind + delta;
  if(next >= length){delta = 1;          next = 0;         counter=counter+1; col=(counter%2==0)?"#F78E4F":"#3DC30C";}
  if(next <       0){delta = delta * -1; next = ind + delta;}

  setColor(name + '_' + ind, getColor(name + '_' + next));
  setColor(name + '_' + next, col);

  command = 'animateloop(\'' + name + '\', ' + length + ','+ counter +', ' + next + ', ' + delta + ', \'' + col + '\')';
  setTimeout(command, 100);
  }

function MM_findObj(n, d){
  var p,i,x;
  if(!d) d=document;
  if((p=n.indexOf("?"))>0&&parent.frames.length){
    d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);
    }
  if(!(x=d[n])&&d.all) x=d.all[n];
  for(i=0;!x&&i<d.forms.length;i++)
    x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    x=MM_findObj(n,d.layers[i].document);
  return x;
  }

function frameloop(sobj){
  var i, args=new Array('a1','a2','a3','a4');
  if(!sobj) sobj = args[0];
  for(i=0; i<(args.length); i++){
   if((obj=MM_findObj(args[i]))!=null){
      obj=obj.style;
      v=obj.visibility;
      if(sobj==args[i]){
        update(obj,v);
	//if(i==args.length-1)
	//  window.setTimeout("frameloop('"+ args[0] +"');", waitTime);
	//else
	   window.setTimeout("frameloop('"+ args[i+1] +"');", waitTime);
	}
      //else
	// obj.visibility = 'hidden';
      }
    }
  }

function update(){
  if(ns4){
    obj= document.a1
    v  = (v=='visible') ? 'hidden': (v='hidden') ? 'visible': v;
    }
  else if(ie4)
    v  = (v=='visible') ? 'hidden': (v='hidden') ? 'visible': v;
  obj.visibility = v;
  }
  
function postFeedback(){
  var mypage= 'feedback.html';
  var myname= 'feedback';
  var w = 425;
  var h = 450;
  if(screen.width){
    var winl = (screen.width-w)/2;
    var wint = (screen.height-h)/2;
    }
  else
    winl = 0;wint =0;

  if(winl < 0) winl = 0;
  if(wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += 'menubar=0,';
  settings += 'toolbar=0,';
  settings += 'location=0,';
  settings += 'status=0,';
  settings += 'scrollbars=0,';
  settings += 'resizable=0,';
  win = window.open(mypage,myname,settings);
  win.window.focus();
  }

var post = "";

function postJob(vpost){
   post = vpost;
   postJobQuery();
    }
  
function postJobQuery(){
  var mypage= 'jobapply.asp?position='+ post;
  var myname= 'jobQuery';
  var w = 700;
  var h = 450;
  if(screen.width){
     var winl = (screen.width-w)/2;
     var wint = (screen.height-h)/2;
     }
  else
     winl = 0;wint = 0;
  if(winl < 0) winl = 0;
  if(wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += 'menubar=0,';
  settings += 'toolbar=0,';
  settings += 'location=0,';
  settings += 'status=0,';
  settings += 'scrollbars=1,';
  settings += 'resizable=1,';
  win = window.open(mypage,myname,settings);
  win.window.focus();
  }
  
  function role(position){
    post = position;
    if(position == "Trainee Coder"){
      a1.innerHTML = '<div align="center" class="a12b">'+ post +'</div><img src="images/traineeCoderAd.gif"><br><INPUT class="button" type=submit value="Apply Here" onClick="javascript:postJobQuery();"></div><br>';
      }
    else if (position == "Jr. Coder")
      a1.innerHTML = '<div align="center" class="a12b">'+ post +'</div><img src="images/medicalCoderAd.gif"><br><INPUT class="button" type=submit value="Apply Here" onClick="javascript:postJobQuery();"></div><br>';
    else if (position == "Sr. Coder")
      a1.innerHTML = '<div align="center" class="a12b">'+ post +'</div><img src="images/medicalCoderAd.gif"><br><INPUT class="button" type=submit value="Apply Here" onClick="javascript:postJobQuery();"></div><br>';
    else if (position == "Specialty Coder")
      a1.innerHTML = '<div align="center" class="a12b">'+ post +'</div><img src="images/specialtyCoderAd.gif"><br><INPUT class="button" type=submit value="Apply Here" onClick="javascript:postJobQuery();"></div><br>';
    else if (position == "Team Leader")
      a1.innerHTML = '<div align="center" class="a12b">'+ post +'</div><img src="images/jobnotavailable.gif"><br><br>';
    else if (position == "Compliance Officer")
      a1.innerHTML = '<div align="center" class="a12b">'+ post +'</div><img src="images/CCOAd.gif"><br><INPUT class="button" type=submit value="Apply Here" onClick="javascript:postJobQuery();"></div><br>';
    else if (position == "Project Manager")
      a1.innerHTML = '<div align="center" class="a12b">'+ post +'</div><img src="images/jobnotavailable.gif"><br><br>';
    }
  
function newWindow(page,name,w,h){
  var mypage= page;
  var myname= name;
  if(screen.width){
     var winl = (screen.width-w)/2;
     var wint = (screen.height-h)/2;
     }
  else
     winl = 0;wint = 0;
  if(winl < 0) winl = 0;
  if(wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += 'menubar=0,';
  settings += 'toolbar=0,';
  settings += 'location=0,';
  settings += 'status=0,';
  settings += 'scrollbars=1,';
  settings += 'resizable=1,';
  win = window.open(mypage,myname,settings);
  win.window.focus();
  }

function viewNcloseWindow(url){
  window.close();
  opener.location.href = ''+url+'';
  }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  



//global object
var ixw = { 'clock' : null, 'count' : 2 }
/*******************************************************

/*****************************************************************************
 List the images that need to be cached
*****************************************************************************/
 ixw.imgs = [
	'images/Healthcare.jpg',
	'images/HIPAAcomp.gif',
	'images/Software.jpg',
	'images/Accounting.jpg',
	'images/Healthcare2.jpg',
	'images/HIPAAcomp2.gif',
	'images/Software2.jpg',
	'images/Accounting2.jpg',
	];
/*****************************************************************************
*****************************************************************************/

//cache the images
ixw.imgsLen = ixw.imgs.length;
ixw.cache = [];
for(var i=0; i<ixw.imgsLen; i++){
    ixw.cache[i] = new Image;
    ixw.cache[i].src = ixw.imgs[i];
    }

//crosswipe setup function
function crosswipe()
{
	//if the timer is not already going
	if(ixw.clock == null)
	{
		//copy the image object 
		ixw.obj = arguments[0];
		
		//get its dimensions
		ixw.size = { 'w' : ixw.obj.width, 'h' : ixw.obj.height };
		
		//copy the image src argument 
		ixw.src = arguments[1];
		
		//change the image alt text if defined
		if(typeof arguments[4] != 'undefined' && arguments[4] != '')
		{
			ixw.obj.alt = arguments[4];
		}

		//if dynamic element creation is supported
		if(typeof document.createElementNS != 'undefined' || typeof document.createElement != 'undefined')
		{
			//create a new image object and append it to body
			//detecting support for namespaced element creation, in case we're in the XML DOM
			ixw.newimg = document.getElementsByTagName('body')[0].appendChild((typeof document.createElementNS != 'undefined') ? document.createElementNS('http://www.w3.org/1999/xhtml', 'img') : document.createElement('img'));

			//set positioning classname
			ixw.newimg.className = 'idupe';

			//set src to new image src
			ixw.newimg.src = ixw.src

			//move it to superimpose original image
			ixw.newimg.style.left = ixw.getRealPosition(ixw.obj, 'x') + 'px';
			ixw.newimg.style.top = ixw.getRealPosition(ixw.obj, 'y') + 'px';

			//set it to be completely hidden with clip
			ixw.newimg.style.clip = 'rect(0, 0, 0, 0)';

			//show the image 
			ixw.newimg.style.visibility = 'visible';

			//copy and convert fade duration argument 
			ixw.length = parseInt(arguments[2], 10) * 1000;

			//create fade resolution argument as 20 steps per transition
			ixw.resolution = parseInt(arguments[2], 10) * 20;

			//copy slide direction argument
			ixw.dir = arguments[3];

			//start the timer
			ixw.clock = setInterval('ixw.crosswipe()', ixw.length/ixw.resolution);
		}
		
		//otherwise if dynamic element creation is not supported
		else
		{
			//just do the image swap
			ixw.obj.src = ixw.src;
		}
		
	}
};


//crosswipe setup function
function crosswipe2(){
  index = arguments[5];
  ids1 =[
	'img1',
	'img2',
	'img3',
	'img4'
	];
  imgs1=[
	'images/Healthcare.jpg',
	'images/HIPAAcomp.gif',
	'images/Software.jpg',
	'images/Accounting.jpg'
	];
  imgs2=[
	'images/Healthcare2.jpg',
	'images/HIPAAcomp2.gif',
	'images/Software2.jpg',
	'images/Accounting2.jpg'
	];

  	alert("reached inside:" + index +"/"+ (ids1.length) );
  
	//if the timer is not already going
	if(ixw.clock == null)
	{

  	alert("reached inside:***************************************************"+ index);
  	
		//copy the image object 
		ixw.obj = arguments[0];
		
		//get its dimensions
		ixw.size = { 'w' : ixw.obj.width, 'h' : ixw.obj.height };
		
		//copy the image src argument 
		ixw.src = arguments[1];
		
		//change the image alt text if defined
		if(typeof arguments[4] != 'undefined' && arguments[4] != '')
		{
			ixw.obj.alt = arguments[4];
		}

		//if dynamic element creation is supported
		if(typeof document.createElementNS != 'undefined' || typeof document.createElement != 'undefined')
		{
			//create a new image object and append it to body
			//detecting support for namespaced element creation, in case we're in the XML DOM
			ixw.newimg = document.getElementsByTagName('body')[0].appendChild((typeof document.createElementNS != 'undefined') ? document.createElementNS('http://www.w3.org/1999/xhtml', 'img') : document.createElement('img'));

			//set positioning classname
			ixw.newimg.className = 'idupe';

			//set src to new image src
			ixw.newimg.src = ixw.src

			//move it to superimpose original image
			ixw.newimg.style.left = ixw.getRealPosition(ixw.obj, 'x') + 'px';
			ixw.newimg.style.top = ixw.getRealPosition(ixw.obj, 'y') + 'px';

			//set it to be completely hidden with clip
			ixw.newimg.style.clip = 'rect(0, 0, 0, 0)';

			//show the image
			ixw.newimg.style.visibility = 'visible';

			//copy and convert fade duration argument 
			//ixw.length = parseInt(arguments[2], 10) * 1000;

			//create fade resolution argument as 20 steps per transition
			ixw.resolution = parseInt(arguments[2], 10) * 20;

			//copy slide direction argument
			ixw.dir = arguments[3];

			//start the timer
			ixw.clock = setInterval('ixw.crosswipe()', ixw.length/ixw.resolution);
		}
		
		//otherwise if dynamic element creation is not supported
		else
		{
			//just do the image swap
			ixw.obj.src = ixw.src;
		}
	  }

   alert("arg5:" + arguments[5]);
   alert("index:" + (index+1));

   //if((index+1)<(ids1.length)){
   //    alert(index +"<"+ (ids1.length));
   //    crosswipe(document.getElementById(ids1[index+1]),imgs2[index+1], '2', 'tb', '',index+1);
   //    }
   };

//crosswipe timer function
ixw.crosswipe = function()
{
	//decrease the counter on a linear scale
	ixw.count -= (1 / ixw.resolution);
	
	//if the counter has reached the bottom
	if(ixw.count < (1 / ixw.resolution))
	{
		//clear the timer
		clearInterval(ixw.clock);
		ixw.clock = null;
		
		//reset the counter
		ixw.count = 1;
		
		//set the original image to the src of the new image
		ixw.obj.src = ixw.src;
	}
	
	//animate the clip of the new image
	//using the width and height properties we saved earlier
	ixw.newimg.style.clip = 'rect('
		+ ( (/bt|bltr|brtl/.test(ixw.dir)) ? (ixw.size.h * ixw.count) : (/che|cc/.test(ixw.dir)) ? ((ixw.size.h * ixw.count) / 2) : (0) )
		+ 'px, '
		+ ( (/lr|tlbr|bltr/.test(ixw.dir)) ? (ixw.size.w - (ixw.size.w * ixw.count)) : (/cve|cc/.test(ixw.dir)) ? (ixw.size.w - ((ixw.size.w * ixw.count) / 2)) : (ixw.size.w) )
		+ 'px, '
		+ ( (/tb|tlbr|trbl/.test(ixw.dir)) ? (ixw.size.h - (ixw.size.h * ixw.count)) : (/che|cc/.test(ixw.dir)) ? (ixw.size.h - ((ixw.size.h * ixw.count) / 2)) : (ixw.size.h) )
		+ 'px, '
		+ ( (/lr|tlbr|bltr/.test(ixw.dir)) ? (0) : (/tb|bt|che/.test(ixw.dir)) ? (0) : (/cve|cc/.test(ixw.dir)) ? ((ixw.size.w * ixw.count) / 2) : (ixw.size.w * ixw.count) ) 
		+ 'px)';
			
	//keep new image in position with original image
	//in case text size changes mid transition or something
	ixw.newimg.style.left = ixw.getRealPosition(ixw.obj, 'x') + 'px';
	ixw.newimg.style.top = ixw.getRealPosition(ixw.obj, 'y') + 'px';
	
	//if the counter is at the top, which is just after the timer has finished
	if(ixw.count == 1)
	{
		//remove the duplicate image
		ixw.newimg.parentNode.removeChild(ixw.newimg);
	}
};


//get real position method
ixw.getRealPosition = function()
{
	this.pos = (arguments[1] == 'x') ? arguments[0].offsetLeft : arguments[0].offsetTop;
	this.tmp = arguments[0].offsetParent;
	while(this.tmp != null)
	{
		this.pos += (arguments[1] == 'x') ? this.tmp.offsetLeft : this.tmp.offsetTop;
		this.tmp = this.tmp.offsetParent;
	}
	
	return this.pos;
};


function openFrameless(url){
	//Border Less Window. Its pretty simple, just a fullscreen window, no features then resized.
	var windowW = 720
	var windowH = 180
	var windowX = 100
	var windowY = 130
	s = "scrollbars=auto"+",width="+windowW+",height="+windowH;

	//For IE only really, in Netscape and other browsers you'll still get a top bar.
	blwindow= window.open(url,"Popup","fullscreen,"+s);
	windowX = (screen.width) ? (screen.width-windowW)/2  : 0;
	windowY = (screen.height)? (screen.height-windowH)/2 : 0;
	blwindow.focus();
	blwindow.resizeTo(windowW,windowH);
	blwindow.moveTo(windowX,windowY);
	}