/*function err() {
  return true;
}
window.onerror = err;*/

function reed(x) {
	var qstring = location.href.split("?");
	if (!qstring[1]) return false; 
	var q=qstring[1];
	if(x==1) {if(q.indexOf('est')!=-1) top.frames.bdy.location.href=q+".php"; else top.frames.bdy.location.href=q+".htm";};
	if(x==2) {
		var name_val = qstring[1].split("&");
		var destFlds = new Array("zipCodeFrom","zipCodeTo","email");
		for (i=0;i<3;i++)	{
			tmp = name_val[i].split("=");
			eval("document.forms.online_estimate." + destFlds[i] + ".value = tmp[1]");
		}
		// document.forms[0].ddate.disabled=true;
//		document.forms[0].addressFrom.focus();
	}
}

function reframe() {
	var h = top.location.href;
/*	if (h.indexOf('index')!=-1) return false;
	if (h.indexOf('file')!=-1) {var x = h.split("es/"); x=x[1].split("."); top.location.href="index.html?"+x[0]; return false;}
	var x = h.split(".com/"); x=x[1].split("."); top.location.href=("index.html?"+x[0]);*/
}
