
function confirmreminder(url,msg){
		window.status = 'Confirm';
		var con= confirm (msg);

		if(con){
			
			window.location.href(url);
		}
	else{
//		alert('User Deletion Cancelled');
		}
}	


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) {

        if (gotlayers) {
                if (on) {
				   document.menufrm.clicked.value = menuName; 
//                       resetLayers(menuName);
                        if (document.layers) {
                        document.layers[menuName].left = l;
                        document.layers[menuName].top = t;
                        document.layers[menuName].visibility = "show";
                        } 
					    if (document.all) {
                        document.all[menuName].style.pixelLeft = l;
                        document.all[menuName].style.pixelTop = t;
                        document.all[menuName].style.visibility = "visible";
                        }
                } else {
                        if (document.layers) {
                        document.layers[menuName].visibility = "hide";
                        } 
						if (document.all) {
                        document.all[menuName].style.visibility = "hidden";
                        }
                }
        }

   if(loff != '' && loff != 'flags' && loff != 'urhere' && loff != null && loff != menuName){
      if (document.layers) {
      document.layers[loff].visibility = "hide";
      } 
      if (document.all) {
      document.all[loff].style.visibility = "hidden";
      }
   }

}
function setCookie(name, value, expdays) {
   var today = new Date()
   var expires = new Date()
   expires.setTime(today.getTime() + 1000*60*60*24*expdays)
   document.cookie = name + "=" + escape(value)
   + ((expdays == null) ? "" : ("; expires=" + expires.toGMTString()))
}
function getCookie(Name) {
   var search = Name + "="
   if (document.cookie.length > 0) { // if there are any cookies
      offset = document.cookie.indexOf(search) 
      if (offset != -1) { // if cookie exists 
         offset += search.length 
         // set index of beginning of value
         end = document.cookie.indexOf(";", offset) 
         // set index of end of cookie value
         if (end == -1) 
            end = document.cookie.length
         return unescape(document.cookie.substring(offset, end))
      } 
   }
}

function resetLayers(exclude) {
        if (exclude != 'TEdesc'){
	    popDesc('TEdesc',false);   }
        if (exclude != 'TPEdesc'){
	    popDesc('TPEdesc',false);   }
        if (exclude != 'ASKdesc'){
	    popDesc('ASKdesc',false);   }
}

// for banner ad upload form changeovers
function img_forms_sel(a,b){
   location ='/flipmanager.htm?mode=upload_form&fid='+b+'&formset=' + a;
}


var gotlayers = 0;
var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;
var ver4 = (NS4 || IE4) ? 1 : 0;

if (NS4) {
gotlayers = (document.layers.length == 3) ? 1 : 0;
}
if (IE4) {
gotlayers = 1;
}

