<!-- B E G I N  

// ROLLOVER SCRIPT
if (document.images) {  

   customSolutionFooterOn = new Image();
   customSolutionFooterOn.src = "../residential/images/site_tools/custom_solution_footer_on.gif";
   customSolutionFooterOff = new Image();
   customSolutionFooterOff.src = "../residential/images/site_tools/custom_solution_footer_off.gif";
   }
   
// function to activate rollover images
function imgOn(imgName)
	{
		if (document.images)
			{
				document[imgName].src = eval(imgName + "On.src");
			}
	}

function imgOff(imgName)
	{
		if (document.images)
			{
				document[imgName].src = eval(imgName + "Off.src");
			}
	}

//   E N D -->


function ZipSubmit(callpage)
	{
 		if (document.catalog.zip.value.length < 5)
		{
			alert ("Please enter a valid City & State or zip code")
			return false;
		}
		else
		{
			if (document.catalog.term.value == "")
			{
				alert ("Please select a term")
				return false;
			}
			else
			{
				document.catalog.action = "/catalog/catalog_index.aspx?myaction=read&callpage=" + callpage
				document.catalog.submit()
			}
		}
		
	}

var cswin;
var contents;
function closechild(){
	try{
	if(cswin && cswin.open && !cswin.closed){
		cswin.close();
	}
	
	
	}	
	catch(e)
	{}
	try{
	if(mysitewin && mysitewin.open && !mysitewin.closed){
		mysitewin.close();
	}
	
	
	}	
	catch(e)
	{}
	try{
		if(myhwin && myhwin.open && !myhwin.closed){
			myhwin.close();
		}

	}
	catch(e)
	{}

	try{
		if(mywin && mywin.open && !mywin.closed){
			
			mywin.close();
		}

	}

	catch(e){}
	
	try{
		if(contents && contents.open && !contents.closed){
			contents.close();
		}
	}
	catch(e){}

	
}	

function Enterkey(cpage)
        {
        if (window.event.keyCode == 13)
                {
                       ZipSubmit(cpage);
                }
        }

function setSRDelAction()
	{
		
		//document.catalogmain.submit();
		document.catalogmain.srdel.value = "Delete"
		return ajaxFormFunction();
	}

function ShowDate(date_form, date_field, et)
  {

	if(date_field == "specific_time")
	{
		try{
			document.finalize.time[1].checked = true;
							
 		}
		catch(e){}
	}

	var pageTop = 0;
	var pageLeft = 0;
	
	
	if(et.pageX || et.pageY)
	{	
		pageTop = et.pageY;
		pageLeft = et.pageX;
	}
	else if(et.clientX || et.clientY)
	{
		pageTop = et.clientY
		pageLeft = et.clientX 
	}

	
	

	pageTop = et.screenY;
	pageLeft = et.screenX;

	
		url = '/bfr_cal.asp?date_form=' + date_form + '&date_field=' + date_field;
	
	contents=window.open(url,"_blank","height=210,width=350,left="+ pageLeft+",top="+pageTop+",screenY="+pageTop+",screenX="+pageLeft+",resizable=no,location=no,status=no,directories=no,toolbar=no,menubar=no;");
	//window.showModalDialog(url);
	
  }

function changeMCursor(eid){

document.getElementById(eid).style.cursor="pointer";
}