	
	/*********************************************/		
	var win = null;
	var divobj = new Array(); // holds div objects
	var	divSize_x = 335,  // default sizes
		divSize_y = 125;
	var timers = new Array();
	is = new BrowserCheck();
	var shown='';
	/*********************************************/
	function opencenter(url,name,width,height){	
		var win = window.open(url,name,'width='+width+',height='+height+',menu=0,resizable=1,scrollbars=1');
		win.moveTo((screen.width- width)/2 ,(screen.height - height)/2);
		win.focus();
		return false;
	}
	/*********************************************/
	function dosubmit(){window.status='..Submitting information to servers...Please wait...';return true;}
	/*********************************************/
	function go(url){location=url;}
	/*********************************************/
	function undef( val ){return typeof(val)=='undefined'}
	/*********************************************/
	function getEl(id){return document.getElementById(id);}
	/*********************************************/
	function checkQuickSearch(){			
		var frm = document.quicksearch;
		var str = frm.keywords.value;
		if(str.length == 0){
			return recheck("Please Enter Keywords separated by a comma. Example(java, php, Engineering) ",frm.keywords);
		}else{						
			frm.submit();				
		}				
	}
	/*********************************************/
	function getAgreement(file){
		h='600';
		w='800';
		window.open(file,'agreement',"height="+h+",width="+w+",resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
		//window.showModelessDialog('ims_agreement.php',"","help:0;resizable:0;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px");
	}
	/*********************************************/		
	function fixImages() {
		if (document.all && is.msWin) {
			var oImages = document.getElementsByTagName("img");
			for (var i=0;i<oImages.length;i++ ) {
			 if (oImages[i].className=='png') {
			   imageUrl = oImages[i].src;
			   oImages[i].src = 'images/spacer.gif';
			   oImages[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+imageUrl+"', sizingMethod='scale')";
			 }
			}
		  var otdImages = document.getElementsByTagName("td");
           for (var i=0;i<otdImages.length;i++ ) {
             if (otdImages[i].className=='png') {
               imageUrl = otdImages[i].src;
               otdImages[i].src = 'images/spacer.gif';
               otdImages[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+imageUrl+"', sizingMethod='scale')";
             }
           }
           var otableImages = document.getElementsByTagName("table");
           for (var i=0;i<otableImages.length;i++ ) {
             if (otableImages[i].className=='png') {
               imageUrl = otableImages[i].src;
               otableImages[i].src = 'images/spacer.gif';
               otableImages[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+imageUrl+"', sizingMethod='scale')";
             }
           }
         }
     }
	/*********************************************/		
	function changeImages() {
	  if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
		  document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
		}
	  }
	}
	/*********************************************/			
	function NewWindow(mypage,myname,w,h,scroll){
		LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
		TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+'resizable=yes,scrollbars=no,status=no,toolbar=no,menubar=no,location=no';
		win = window.open(mypage,myname,settings);
		if(win.window.focus){win.window.focus();}
	}
	/*********************************************/		
	function hideOne(id){ieDisplay('table-'+id,0);ieDisplay(id,0);}
	/*********************************************/		
	function hideAll(id){
		var obj;
	
		//strip all numbers
		id=id.replace(/[0-9]/g,'');
	
		// Hide all divs, day by day
		for(x=1;(obj=getEl(id+x));x++){	hideOne(id+x);}
	}
	/*********************************************/		
	function growtosize(id,xinc,yinc,maxw,maxh){
		var killme=0,trig=0;
	
		var obj=getEl(id);
		var w=parseInt(obj.style.width);
		var h=parseInt(obj.style.height);
		if(w >= maxw)trig++;
		else	obj.style.width =w + xinc;
		if(h >= maxh)trig++;
		else	obj.style.height=h + yinc;
		if(trig == 2){
			// Show content, and kill growth
			ieDisplay('table-'+id,1);
			clearInterval(timers[id]);
		}
	}
	/*********************************************/		
	function showdiv(id,maxw,maxh){
	/*  id 		= relative div(the 'window'), 
			  with id in format areaname-day
			  day should be the ONLY numbers!!!!!
			DO NOT USE NUMBERS IN THE 'areaname'!
	    inner table id, should be in the form of table-id , id being in the format listed above
	*/
				
		hideAll(id);
		divobj[id]=getEl(id);
	
		// Size, show, and grow!
		divobj[id].style.width = 10;
		divobj[id].style.height= 10;
		ieDisplay(id,1);
		timers[id] = setInterval('growtosize(\''+id+'\',25,12,'+((maxw)?maxw:divSize_x)+','+((maxh)?maxh:divSize_y)+')',1);
	}
	/*********************************************/		
	function BrowserCheck() {
		var b = navigator.appName;
		if (b=="Netscape") this.b = "ns";
		else if (b=="Microsoft Internet Explorer") this.b = "ie";
		else this.b = b;
		this.version = navigator.appVersion;
		this.v       = parseInt(this.version);
		this.ns     =  (this.b=="ns" && this.v>=4);
		var myNS = new String(window.navigator.appVersion);
		this.ns472   = (this.b=="ns" && myNS.substring(0, 4) == "4.72");
		this.ns473   = (this.b=="ns" && myNS.substring(0, 4) == "4.73");
		this.ns474   = (this.b=="ns" && myNS.substring(0, 4) == "4.74");
		this.ns475   = (this.b=="ns" && myNS.substring(0, 4) == "4.75");
		this.ns476   = (this.b=="ns" && myNS.substring(0, 4) == "4.76");
		this.ns477   = (this.b=="ns" && myNS.substring(0, 4) == "4.77");
		this.ns478   = (this.b=="ns" && myNS.substring(0, 4) == "4.78");
		this.ns479   = (this.b=="ns" && myNS.substring(0, 4) == "4.79");
		this.ns480   = (this.b=="ns" && myNS.substring(0, 3) == "4.8");
		this.ns4   = (this.b=="ns" && this.v==4);
		this.ns479   = (this.b=="ns" && myNS.substring(0, 4) == "4.79");
		this.ns480   = (this.b=="ns" && myNS.substring(0, 3) == "4.8");
		this.ns5   = (this.b=="ns" && this.v==5);	
		this.ns610 = (this.b=="ns" && window.navigator.productSub == 20010726);
		this.ns621 = (this.b=="ns" && window.navigator.productSub == 20011128);
		this.ns622 = (this.b=="ns" && window.navigator.productSub == 20020314);
		this.ns623	= (this.b=="ns" && window.navigator.productSub == 20020508);
		this.ns6     = (this.ns610 || this.ns621 || this.ns622 || this.ns623 ? true : false);
		this.ns701 = (this.b=="ns" && window.navigator.productSub == 20021120); 
		this.ns702 = (this.b=="ns" && window.navigator.productSub == 20030208); 
		this.ns710 = (this.b=="ns" && window.navigator.productSub == 20030624 ); 
		this.ns7    = (this.ns701 || this.ns702 || this.ns710 ? true : false);
		this.ie      =  (this.b=="ie" && this.v>=4);
		this.ie4    = (this.version.indexOf('MSIE 4')>0);
		this.ie5    = (this.version.indexOf('MSIE 5')>0);
		this.min   = ( this.ns||this.ie);
		this.msWin = (navigator.userAgent.indexOf("Win")>0);
	}	
	/*********************************************/		
	function showtip(current,e,text){
		if (document.all||document.getElementById){
			thetitle=text.split('<br>')
			if (thetitle.length>1){
				thetitles='';
				for (i=0;i<thetitle.length;i++){
					thetitles+=thetitle[i];
				}
				current.title=thetitles
			}else{
				current.title=text;
			}
		}else if (document.layers){
			document.tooltip.document.write('<layer bgColor="white" style="border:1px solid black;font-size:12px;">'+text+'</layer>')
			document.tooltip.document.close();
			document.tooltip.left=e.pageX+5;
			document.tooltip.top=e.pageY+5;
			document.tooltip.visibility="show";
		}
	}
	/*********************************************/		
	function hidetip(){
		if (document.layers){
			document.tooltip.visibility="hidden";
		}
	}
	/*********************************************/		
	function OpenFile(url) {
		if( shown=='' || shown.closed) {
			shown=window.open(url,'OpenFile','scrollbars=yes,status=no, high,width=500,height=500');
		}else{ 
			shown.close();
			shown=window.open(url,'OpenFile','scrollbars=yes,status=no, high,width=500,height=500');
		}
	
		/*********************************************/		
		function checkAgree(field, anch){
			if(field.checked == true) 
			{
			  return true;
			}
			else
			{
			  anch.scrollIntoView();
			  alert("You must click I Agree To These Terms!");
			  return false;
			}
		}
		/*********************************************/		
		var checkflag = "false";
		/*********************************************/		
		function check(field, check) {
			if (check == true) {
				for (i = 0; i < field.length; i++) 	{
					field[i].checked = true;
				}
				return;
			}else {
				for (i = 0; i < field.length; i++) 
				{
				field[i].checked = false; 
				}
				return;
			}
		}	
	}
	/*********************************************/		
	function TestDataCheck(){
		if(document.form1.agreebox.checked == true) {
		  return true;
		}
		 alert("You must click I Agree To These Terms!");
		return false; 
	}

