function checkBrowser(){this.ver=navigator.appVersion;this.dom=document.getElementById?1:0;this.ie5=(this.ver.indexOf("MSIE 5")>-1&&this.dom)?1:0;this.ie4=(document.all&&!this.dom)?1:0;this.ns5=(this.dom && parseInt(this.ver)>=5)?1:0;this.ns4=(document.layers&&!this.dom)?1:0;this.bw=(this.ie5||this.ie4||this.ns4||this.ns5);return this;}
function showHide(div,nest){bw=new checkBrowser();obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0;if(obj.visibility=='visible'||obj.visibility=='show') obj.visibility='hidden';else obj.visibility='visible';}
function show(div,nest){bw=new checkBrowser();obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0;obj.visibility='visible';}
function hide(div,nest){bw=new checkBrowser();obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0;obj.visibility='hidden';}

function chgBg(obj,color){if(document.all||document.getElementById)obj.style.backgroundColor=color;else if(document.layers)obj.bgColor=color;}
function chgCo(obj,color){if(document.all||document.getElementById)obj.style.color=color;else if(document.layers)obj.color=color;}

function popup(URL,id,width,height){window.open(URL,id,'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width='+width+',height='+height+',left=0,top=0').focus();}

//function checkMime(fn){var op;var ext=fn.substring(fn.length-3,fn.length).toLowerCase();if(ext!='jpg'){op=false;}else{op=true;}return op;}
function checkMime(fn,ext){var op;if(ext!=fn.substring(fn.length-3,fn.length).toLowerCase()){op=false;}else{op=true;}return op;}


function checkform(form) {
  if (form.email.value == "") {alert( "Please enter your email address." );form.email.focus();return false ;}
  return true ;
}
