
function MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  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 showpanel(id) {
if (document.getElementById(id).style.display=="block")
{
document.getElementById(id).style.display="none";}
else {
document.getElementById(id).style.display="block";
window.scrollTo(0,800);
}
}
function logohide(elmt) {
	document.getElementById(elmt).style.visibility = "hidden";
	}
	
function logoshow(elmt) {
	document.getElementById(elmt).style.visibility = "visible";
	}	
	
	
function DrawAdvert(AdvertID){


		document.MAX_ct0 ='INSERT_CLICKURL_HERE';
		
		var m3_u = (location.protocol=='https:'?'https://www.comparecontracthire.com/openx/www/delivery/ajs.php':'http://www.comparecontracthire.com/openx/www/delivery/ajs.php');
		var m3_r = Math.floor(Math.random()*99999999999);
		if (!document.MAX_used) document.MAX_used = ',';
		document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
		document.write ("?zoneid=" + AdvertID + "&amp;target=_blank");
		document.write ('&amp;cb=' + m3_r);
		if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
		document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
		//document.write ("&amp;loc=" + escape(window.location));
		if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
		if (document.context) document.write ("&context=" + escape(document.context));
		if ((typeof(document.MAX_ct0) != 'undefined') && (document.MAX_ct0.substring(0,4) == 'http')) {
			document.write ("&amp;ct0=" + escape(document.MAX_ct0));
		}
		if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
		document.write ("'><\/scr"+"ipt>");

}

<!-- Idea by:  Nic Wolfe -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function TechnicalPopUp(URL) {
	
	width = 600;
	height=500
day = new Date();
id = day.getTime();
left = (screen.width - width)/2;
top = (screen.height - height)/2;
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=1,resizable=1,width='+width+',height='+height+',left = '+left+',top = '+top+'');");
}
// End -->

