
	
	
	function changeClass(ele,cls)	{
		ele.className = cls;
	}
	
	function changeRowClass(ele,cls)	{
		eid = document.getElementById(ele);
		eid.className = cls;
	}
	
	function chkReqVal(ele,rowID,cls1,cls2)	{
		if(ele.value.length != 0) {var useClass = cls2;} else {var useClass = cls1;}
		row = document.getElementById(rowID);
		row.className = useClass;
	}
	
	function blurEvent(ele,eletype,rowID)	{
		row = document.getElementById(rowID);
		if((row.className=='form') || (row.className=='req'))	{
			if(eletype=='input')			{changeClass(ele,'entryfield');}
			if(eletype=='select')			{changeClass(ele,'dropdown');}
			if(eletype=='select_job')		{changeClass(ele,'dropdown_job');}
			if(eletype=='textarea')			{changeClass(ele,'textarea');}
			if(eletype=='radio')			{changeClass(ele,'radio');}
		} 
		else if (row.className=='errorRowActive')	{chkReqVal(ele,rowID,'error','form');}
	}
	
	
	function focusEvent(ele,eletype,rowID)	{
		row = document.getElementById(rowID);
		if((row.className=='form') || (row.className=='req'))	{
			if(eletype=='input')			{changeClass(ele,'entryfieldActive');}
			if(eletype=='select')			{changeClass(ele,'dropdownActive');}
			if(eletype=='select_job')		{changeClass(ele,'dropdownActive_job');}
			if(eletype=='textarea')			{changeClass(ele,'textareaActive');}
			if(eletype=='radio')			{changeClass(ele,'radioActive');}
		} 
		else if (row.className=='error')	{changeRowClass(rowID,'errorRowActive');}
	}
	
//function loadDemo() {
	//window.open('http://get.hitbox.com/pro/content/prodemo.html', 'newWin');
//}

//function popUp(strURL, strType, strHeight, strWidth) {  if (newWin != null && !newWin.closed)    newWin.close();  var strOptions="";  if (strType=="console")    strOptions="resizable,height="+      strHeight+",width="+strWidth; if (strType=="printwindow")    strOptions="toolbar,scrollbars,resizable,height="+      strHeight+",width="+strWidth;  if (strType=="fixed")    strOptions="status,height="+      strHeight+",width="+strWidth;  if (strType=="elastic")    strOptions="toolbar,menubar,scrollbars,"+      "resizable,location,height="+      strHeight+",width="+strWidth;  newWin = window.open(strURL, 'newWin', strOptions);  newWin.focus();}


//function suggest(strURL, strType,srv) {
//	var url = "http://"+srv+"/site-tools/suggest/?url="+strURL+"&type="+strType;
	
	//window.open(url, "newWin","height=550,width=500");
	//popUp(url,"console", 400, 300);
//}


	function ChangeButtonState(btn,state,isrc)	{
		var len = btn.src.length;
		var iid = btn.src.substring((len-5),(len-4));
		if((iid == '0') && (state=='over'))	{btn.src=isrc;}
		if((iid == '0') && (state=='out'))	{btn.src=isrc;}
		if((iid == '0') && (state=='down'))	{btn.src=isrc;}
							
		if((iid == '1') && (state=='over'))	{btn.src=isrc;}
		if((iid == '1') && (state=='out'))	{btn.src=isrc;}
		if((iid == '1') && (state=='down'))	{btn.src=isrc;}
							
		if((iid == '2') && (state=='over'))	{}
		if((iid == '2') && (state=='out'))	{}
		if((iid == '2') && (state=='down'))	{}
	}
			
			
	function ctaRollover(btn,isrc)	{
		btn.src = isrc;
	}
			
			
function chkCountry()	{
	cid = document.getElementById('COUNTRY');
	fid = document.getElementById('STATE');
	rid = document.getElementById('R_STATE');
	if(cid.value == '')			{loadStateList(fid,'UNKNOWN');	fid.disabled = true;	rid.className='form'}
	else if(cid.value=='296')	{loadStateList(fid,'usa'); 		fid.disabled = false;	if(rid.className != 'error') {rid.className='req';}}
	else if(cid.value=='48')	{loadStateList(fid,'canada');  	fid.disabled = false;	if(rid.className != 'error') {rid.className='req';}}
	else if(cid.value=='US')	{loadStateList(fid,'US'); 		fid.disabled = false;	if(rid.className != 'error') {rid.className='req';}}
	else if(cid.value=='CA')	{loadStateList(fid,'CA');  	fid.disabled = false;	if(rid.className != 'error') {rid.className='req';}}
	else						{loadStateList(fid,'NULL'); 	fid.disabled = true;	rid.className='form'}
}
	
function chkCountryCareers()	{
	cid = document.getElementById('COUNTRY');
	fid = document.getElementById('STATE');
	rid = document.getElementById('R_STATE');
	if(cid.value == '')			{loadStateList(fid,'UNKNOWN');	fid.disabled = true;	rid.className='form'}
	else if(cid.value=='226')	{loadStateList(fid,'usa'); 		fid.disabled = false;	if(rid.className != 'error') {rid.className='req';}}
	else if(cid.value=='37')	{loadStateList(fid,'canada');  	fid.disabled = false;	if(rid.className != 'error') {rid.className='req';}}
	else						{loadStateList(fid,'NULL'); 	fid.disabled = true;	rid.className='form'}
}


//function openNewWindow(urlX){
	//var n=new Date();
//	var x=window.open(urlX, 'newWin'+n.getTime());
	//x.focus();
//}
//function openNewWindow2(urlX,h,w){
//	var n=new Date();
	//var x=window.open(urlX, 'newWin'+n.getTime(),'status=yes,scrollbars=yes,height='+h+',width='+w);
	//x.focus();
//}