function confirmSubmit(msg)
{
if (this.aimg.email.value.indexOf("@") == -1 || this.aimg.email.value.indexOf(".") == -1 || this.aimg.email.value.indexOf(" ") != -1){
alert('Please enter the valid email address');
return false;
}
var agree=confirm(msg+' '+this.aimg.email.value+' '+'?');
if (agree){ return true ; }
else return false ;

}

function banner_frame(){
 if (self != top){
 location = '/';
 }
}
        function txt_front(sflag){
                if (document.frm.front_head != null){
                 if (document.frm.front_head.value == "Front Headline"){
                 document.frm.front_head.value = "";
                 }
                }
         if(sflag == 'submit'){
         window.blur();
         }
        }

function ccon(oTd) {if (!oTd.contains(event.fromElement)) {oTd.bgColor="FFFFFF";}}
function ccoff(oTd) {if (!oTd.contains(event.toElement)) {oTd.bgColor="E9F8FC";}}
		
// dblue = "#1b81c8" Lblue="#daf5f1" turq="#138b91" lturq="#cff2f1" >
		
		
function AppWin(url, wname, pl, pt) {

location=url;
return;


var w = 780;
var h = 550;
pt = pt - 5; // height tweak
 // Nav 4 gives true screen pos %, while default assumes % on 640X480
 if (parseInt(navigator.appVersion) >= 4) {
   if((screen.availWidth * .85) > w) { w = screen.availWidth * .85;  }
   if((screen.availHeight * .85) > h) { h = screen.availHeight * .85; }
 winX = (screen.availWidth - w)*pl*.01;
 winY = (screen.availHeight - h)*pt*.01;
 }
aWin = window.open(url, wname,'scrollbars=yes,status=yes,resizable=yes,width=' + w + ',height=' + h + ',left=' + winX + ',top=' + winY);
 if (aWin.focus) {
 aWin.focus();
 }
}

function PopWin(url, wname, w, h, pl, pt) {
	var winX = pl;
	var winY = pt;
	// Nav 4 gives true screen pos %, while default assumes % on 640X480
	if (parseInt(navigator.appVersion) >= 4) {
		winX = (screen.availWidth - w)*pl*.01;
		winY = (screen.availHeight - h)*pt*.01;
	}

	pWin = window.open(url, wname,'scrollbars=yes,status=no,dependent,resizable=yes,width=' + w + ',height=' + h + ',left=' + winX + ',top=' + winY);
	if (pWin.focus) {
		pWin.focus();
	}
}

function popDesc(menuName,on,l,t,loff) {
var DL_bNS4=(document.layers);
var DL_bNS6 = (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko"));
var DL_bDOM=(document.getElementById);
var DL_bIE=(document.all);
var DL_bIE4=(DL_bIE && !DL_bDOM);
var DL_bMac = (navigator.appVersion.indexOf("Mac") != -1);
var DL_bIEMac=(DL_bIE && DL_bMac);
var DL_bIE4Mac=(DL_bIE4 && DL_bMac);
var DL_bNS =(DL_bNS4 || DL_bNS6);

                if (on) {
			    document.menufrm.clicked.value = menuName; 
                        if (DL_bNS4) {
                        document.layers[menuName].left = l;
                        document.layers[menuName].top = t;
                        document.layers[menuName].visibility = "show";
                        } 
					    else {
						   if(DL_bDOM)
		                   DL_oLayer=document.getElementById(menuName);
					       else
					       DL_oLayer = window[menuName];
                        DL_oLayer.style.left = l;
                        DL_oLayer.style.top = t;
                        DL_oLayer.style.visibility="visible";
                        }
                } else {
                        if (DL_bNS4) {
                        document.layers[menuName].visibility = "hide";
                        } 
						else {
						   if(DL_bDOM)
		                   DL_oLayer=document.getElementById(menuName);
					       else
					       DL_oLayer = window[menuName];
                        DL_oLayer.style.visibility="hidden";
                        }
                }

   if(loff != 'flags' && loff != 'costdisp' && loff != 'urhere' && loff != '' && loff != null && loff != menuName){
      if (DL_bNS4) {
      document.layers[loff].visibility = "hide";
      } 
      else {
   		if(DL_bDOM)
        DL_oLayer=document.getElementById(loff);
      	else
      	DL_oLayer = window[loff];
      DL_oLayer.style.visibility="hidden";
      }
   }

}
function hidepop(){
   popDesc('plansdesc',false);
   popDesc('bragdesc',false);
   popDesc('infradesc',false);    
   popDesc('sitemandesc',false);
   popDesc('preorddesc',false);
   popDesc('faqdesc',false);
}


