		var highlightcolor="#FFFFFF"
	
		var ns6=document.getElementById&&!document.all
		var previous=''
		var eventobj

		//Regular expression to highlight only form elements
		var intended=/INPUT|TEXTAREA|SELECT|OPTION/

		//Function to check whether element clicked is form element
		function checkel(which){
		if (which.style&&intended.test(which.tagName)){
		if (ns6&&eventobj.nodeType==3)
		eventobj=eventobj.parentNode.parentNode
		return true
		}
		else
		return false
		}

		//Function to highlight form element
		function highlight(e){
		eventobj=ns6? e.target : event.srcElement
		if (previous!=''){
		if (checkel(previous))
		previous.style.backgroundColor=''
		previous=eventobj
		if (checkel(eventobj))
		eventobj.style.backgroundColor=highlightcolor
		}
		else{
		if (checkel(eventobj))
		eventobj.style.backgroundColor=highlightcolor
		previous=eventobj
		}
		}




function showRemoteItemDetails() {
	var windowprops = "toolbar=0,location=0,directories=0,status=1, " +
	"menubar=0,scrollbars=yes,resizable=yes,width=500,height=575";
	OpenWindow = window.open("", "remote", windowprops); 
}





function showRemoteEmail() {
	var windowprops = "toolbar=0,location=0,directories=0,status=1, " +
	"menubar=0,scrollbars=yes,resizable=yes,width=550,height=300";
	OpenWindow = window.open("", "remoteEmail", windowprops); 
}


function showRemoteItemRel() {
	var windowprops = "toolbar=0,location=0,directories=0,status=1, " +
	"menubar=0,scrollbars=yes,resizable=yes,width=625,height=600";
	OpenWindow = window.open("", "remoteRel", windowprops); 
}



function showRemoteImageSm() {
	var windowprops = "toolbar=0,location=0,directories=0,status=1, " +
	"menubar=0,scrollbars=yes,resizable=yes,width=550,height=400";
	OpenWindow = window.open("", "remoteImg", windowprops); 
}


function showRemoteGalRel() {
	var windowprops = "toolbar=0,location=0,directories=0,status=1, " +
	"menubar=0,scrollbars=yes,resizable=yes,width=650,height=800";
	OpenWindow = window.open("", "remoteGal", windowprops); 
}


function showGalleryImage() {
	var windowprops = "toolbar=0,location=0,directories=0,status=1, " +
	"menubar=0,scrollbars=yes,resizable=yes,width=550,height=700";
	OpenWindow = window.open("", "galleryImage", windowprops); 
}


function showSqCusShipToDetails() {
	var windowprops = "toolbar=0,location=0,directories=0,status=1, " +
	"menubar=0,scrollbars=yes,resizable=yes,width=550,height=700";
	OpenWindow = window.open("", "oSqCusShipTo", windowprops); 
}



function showRemoteStructure() {
	var windowprops = "toolbar=0,location=0,directories=0,status=1, " +
	"menubar=0,scrollbars=yes,resizable=yes,width=500,height=600";
	OpenWindow = window.open("", "forum_structure", windowprops); 
}


function closeRemote() {
	timer = setTimeout('window.close();', 10);
}


function clearDefault(el) {
	if (el.defaultValue==el.value) el.value = ""
}


function printPage() {
	javascript:window.print();
}

function submitCalForm() {
	document.frm_cal.submit();
}