function popcallfirst() {
	openpop("/callfirst.html",596,160,"cfwin");
}


function openpop(url,w,h,n) {
    var url=url;
    var height = h;
    var width = w;
    var wname = n;
    var winleft = (screen.width - width) / 2;
    var winUp = (screen.height - height) / 2;
    winProp = 'width='+width+',height='+height+',left='+winleft+',top='+winUp+',scrollbars=no,resizable=yes'
    newwin = window.open(url, wname, winProp);
}


function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 


function hideAllBut(divnum, numtabs){
// used for tabbed top of landing pages
// hides all but the passed tab number
// second number is the total number os tabe on thepage
	for (i=1;i<=numtabs;i++){
		curtab='tab'+i;
		curmenutab='menutab'+i;
		if (i==divnum){
			MM_changeProp(curtab,'','style.display','block','DIV')
			MM_changeProp(curmenutab,'','className','lp_tab_menuboxactive','DIV')
			MM_changeProp(curtab+'left','','style.display','block','DIV')
			MM_changeProp(curmenutab+'left','','className','lp_tab_menuboxactiveleft','DIV')
		}else{
			MM_changeProp(curtab,'','style.display','none','DIV')
			MM_changeProp(curmenutab,'','className','lp_tab_menubox','DIV')
			MM_changeProp(curtab+'left','','style.display','none','DIV')
			MM_changeProp(curmenutab+'left','','className','lp_tab_menuboxleft','DIV')
		}
	}
}

function setHover(objName,theValue){
// used by tabbed landing pages
// allows for a color change/restore on mouse over/out
// while keeping the active tab unchanged
  var obj = MM_findObj(objName);
//  alert(obj.className);
  if (obj.className!="lp_tab_menuboxactive"){
        obj.className=theValue;
        obj = MM_findObj(objName+'left');
        obj.className=theValue+'left';
  }
}
