// <![CDATA[		
	var myimages=new Array()
	function preloadimages()
		{
			for (i=0;i<preloadimages.arguments.length;i++)
				{
					myimages[i]=new Image()
					myimages[i].src=preloadimages.arguments[i]
				}
		}
	preloadimages("http://imgs.clickjobs.com/images/home/headbg.gif","http://imgs.clickjobs.com/images/home/jspanel.gif","http://imgs.clickjobs.com/images/home/emppanel.gif","http://imgs.clickjobs.com/images/home/bg2.jpg","http://imgs.clickjobs.com/images/home/vline.gif","http://imgs.clickjobs.com/images/home/pcworld-award.gif","http://imgs.clickjobs.com/images/home/iso.gif")

	function popup(url,wname,param)
	{
		var child_win = window.open(url,wname,param);
		if (child_win)
		{
			child_win.focus();
		}
		else
		{
			alert('Your Browser or other popup blocker(s) blocks popup windows. Disable popup blocker');
		}
	}
	function submitForm()
	{
		if ( (document.indexform.keyskills.value == 'Keywords' || document.indexform.keyskills.value == '' )&&  ( document.indexform.location.value== 'Location' || document.indexform.location.value== '' ) && (document.indexform.jobCode.value== 'Job Code' ||
		document.indexform.jobCode.value== '') )
		{
			alert("Please enter keywords or job code");
			document.indexform.keyskills.value = '';
			document.indexform.keyskills.focus();
			return false;
		}
		if ( 
		( (document.indexform.keyskills.value == 'Keywords' && document.indexform.location.value  != 'Location'  && document.indexform.location.value  != '') || 
		(document.indexform.keyskills.value != 'Keywords' && document.indexform.keyskills.value != '' && 
		(document.indexform.location.value  == 'Location' || document.indexform.location.value  == '')) || 
		(document.indexform.keyskills.value != 'Keywords' && document.indexform.keyskills.value != '' && 
		document.indexform.location.value  != 'Location' && document.indexform.location.value  != '') ) && 
		(document.indexform.jobCode.value != 'Job Code' && document.indexform.jobCode.value != '')
			)
		{
			alert("Please enter keywords or job code");
			document.indexform.keyskills.value = '';
			document.indexform.jobCode.value = 'Job Code';
			if ( document.indexform.location.value == '' )
			{
				document.indexform.location.value = 'Location';						
			}
			document.indexform.keyskills.focus();
			return false;
		}
		if ( document.indexform.jobCode.value != '' &&  document.indexform.jobCode.value != 'Job Code' )
		{
			var host = location.href.split('/');
			var regJobCode = new RegExp('^(cj|CJ){1}[0-9]+$');
			var jobId = document.indexform.jobCode.value;
			if ( jobId == '' )
			{
				alert("Please enter valid job code");	
				document.indexform.jobCode.value='';
				document.indexform.jobCode.focus();	
				return false;
			}
			if (document.indexform.jobCode.value)
			{
				if (!regJobCode.test(document.indexform.jobCode.value))
				{
					alert("Please enter valid job code");	
					document.indexform.jobCode.value='';
					document.indexform.jobCode.focus();	
					return false;
				}
				else
				{
					hostSearch = "search.clickjobs.com";
					var mypop = popup("http://"+hostSearch+"/emp/previewJP.php?jobId="+jobId,'preview','toolbar,width=800,height=800,top=0,left=0,resizable=yes,scrollbars=yes');
					return false;
				}
			}
		}
		if ( document.indexform.location.value== 'Location' )
		{
			document.indexform.location.value='';
		}
		if ( document.indexform.keyskills.value== 'Keywords' )
		{
			document.indexform.keyskills.value='';
		}
	}
	function clearJobCode()
	{
		if(document.indexform.jobCode.value=="Job Code")
		{
			document.indexform.jobCode.value="";
			if(document.indexform.keyskills.value=="")
			{
				document.indexform.keyskills.value="Keywords";
			}
			if(document.indexform.location.value=="")
			{
				document.indexform.location.value="Location";
			}
		}
		else if(document.indexform.jobCode.value=="")
		{
			if(document.indexform.keyskills.value=="")
			{
				document.indexform.keyskills.value="Keywords";
			}
			if(document.indexform.location.value=="")
			{
				document.indexform.location.value="Location";
			}
		}
	}
	function clearLoc()
	{
		if(document.indexform.location.value=="Location")
		{
			document.indexform.location.value="";
			if(document.indexform.keyskills.value=="")
			{
				document.indexform.keyskills.value="Keywords";
			}
			if(document.indexform.jobCode.value=="")
			{
				document.indexform.jobCode.value="Job Code";
			}
		}
		else if(document.indexform.location.value=="")
		{
			if(document.indexform.keyskills.value=="")
			{
				document.indexform.keyskills.value="Keywords";
			}
			if(document.indexform.jobCode.value=="")
			{
				document.indexform.jobCode.value="Job Code";
			}
		}
	}
	function clearKey()
	{
		if(document.indexform.keyskills.value=="Keywords")
		{
			document.indexform.keyskills.value="";
			if(document.indexform.location.value=="")
			{
				document.indexform.location.value="Location";
			}
			if(document.indexform.jobCode.value=="")
			{
				document.indexform.jobCode.value="Job Code";
			}
		}
		else if(document.indexform.keyskills.value=="")
		{
			if(document.indexform.location.value=="")
			{
				document.indexform.location.value="Location";
			}
			if(document.indexform.jobCode.value=="")
			{
				document.indexform.jobCode.value="Job Code";
			}
		}
	}
	function searchCategory(category,CategoryNext,browseFirst)
	{
		//var host = location.href.split('/');
		hostSearch = "search.clickjobs.com";
		document.indexform.action="http://"+hostSearch+"/js/search/jobSearchCategory.php";
		document.indexform.submit();
	}	
// ]]>