if (document.images) {
hom_on = new Image();	hom_on.src = view_path + "images/buttons/on-home.gif";
hom_off = new Image();	hom_off.src = view_path + "images/buttons/off-home.gif";
pro_on = new Image();	pro_on.src = view_path + "images/buttons/on-projex.gif";
pro_off = new Image();	pro_off.src = view_path + "images/buttons/off-projex.gif";
cli_on = new Image();	cli_on.src = view_path + "images/buttons/on-client.gif";
cli_off = new Image();	cli_off.src = view_path + "images/buttons/offclient.gif";
wri_on = new Image();	wri_on.src = view_path + "images/buttons/on-selectedwrit.gif";
wri_off = new Image();	wri_off.src = view_path + "images/buttons/off-writings.gif";
abo_on = new Image();	abo_on.src = view_path + "images/buttons/on-aboutus.gif";
abo_off = new Image();	abo_off.src = view_path + "images/buttons/off-aboutus.gif";
con_on = new Image();	con_on.src = view_path + "images/buttons/on-contact.gif";
con_off = new Image();	con_off.src = view_path + "images/buttons/off-contact.gif";
pr_on = new Image();	pr_on.src = view_path + "images/buttons/on-press.gif";
pr_off = new Image();	pr_off.src = view_path + "images/buttons/off-press.gif";
}

function roll(sname,rname){
    sname.src = rname.src;
}
function id2elem(id) {
	if (typeof(id) != 'string') {
		return id;
	}
	if (document.getElementById) {
		id = document.getElementById(id);
	} else if (document.all) {
		id=document.all[id];
	} else {
		id = null;
	}
	return id;
}
function popup(url,width,height){
    nw = window.open(url,"newwindow","width="+width+",height="+height+",status=0,toolbar=0,menubar=0,scrollbars=1,resizable=1,location=0");
    nw.focus();

}
function popWin(w,h,pageUrl,scrollbar){
 newWind=window.open
   (pageUrl,"newWindow","status=no,toolbar=no,scrollbars=no,width="+w+",height="+h+",top=10,left=10")

}

function checkForm(){
if (document.subscribeForm.elements['Email Address'].value.length > 0){
 return true;
 }
else{
 alert('Please enter your email address.');
 document.subscribeForm.elements['Email Address'].focus();
 return false;
 }
}