//rollover

count =4;

function rollover(cell,image,directory,hover,p) {
	//if (cell.className == "left") {
	cell.className = "on";
	if(hover==1){
		cell.style.cursor='hand';
		cell.style.cursor='pointer';
	}
	//}
	if (image != ""){	
		theImage = document.getElementById(image);
		theImage.src = 'images/'+directory+'/'+image+'-on.gif';
	}
	/*if(p!=""){
		for(i=1;i<=count;i++){
			divname = "div"+i;
			document.getElementById(divname).className="poff";
		}
		divname = "div"+p;
		document.getElementById(divname).className="pon";
	}*/
}
function rollout(cell,image,directory,p) {
	cell.className = "off";

	if (image != ""){	
		theImage = document.getElementById(image);
		theImage.src = 'images/'+directory+'/'+image+'-off.gif';
	}
	/*if(p!=""){
		for(i=1;i<=count;i++){
			document.getElementById('div'+i).className="poff";
		}
	}*/
}


function clickme(alink){
	location.href=alink;
}


function onClick(html) {
	window.location = html;
}

screenW = window.screen.availWidth;
screenH = window.screen.availHeight;
windowH = 650;
windowW	= 600;
posL = (screenW - windowW)*.5;
posT = (screenH - windowH)*.5;


function openRequestForm(eh,comment) {
	path = "form.asp?type="+eh+"&comment="+comment;
	_w = window.open(path,'new','width='+windowW+',height='+windowH+',top='+posT+',left='+posL+',menubar=0,location=0,toolbar=0,personalbar=0,status=0,scrollbars=1');
	//_w.document.open();
	_w.document.focus();
}
function openCustomerForm(eh,comment) {
	path = "form_customerCentre.asp?type="+eh+"&comment="+comment;
	_w = window.open(path,'new','width='+windowW+',height='+windowH+',top='+posT+',left='+posL+',menubar=0,location=0,toolbar=0,personalbar=0,status=0,scrollbars=1');
	//_w.document.open();
	_w.document.focus();
}
function openResidentialForm(eh,comment) {
	path = "form.asp?section=residential&type="+eh+"&comment="+comment;
	_w = window.open(path,'new','width='+windowW+',height='+windowH+',top='+posT+',left='+posL+',menubar=0,location=0,toolbar=0,personalbar=0,status=0,scrollbars=1');
	//_w.document.open();
	_w.document.focus();
}
function openCustomerAccountsForm() {
	path = "https://web.jdsecurity.com.au/form_customercentre_accounts.asp";
	_w = window.open(path,'new','width='+windowW+',height='+windowH+',top='+posT+',left='+posL+',menubar=0,location=0,toolbar=0,personalbar=0,status=1,scrollbars=1');
	//_w.document.open();
	_w.document.focus();
}
