
function popFrame(link) {
    document.all('theIframe').style.display='block'
	Iframe.location.href = link ;
}



function popWinFrame(url) {

 if ((screen.width == 640) && (screen.height == 480))
    {
 	HWsize="height=93,width=255";
 	XYpos ="left=350,top=330";
    }
 else if ((screen.width == 800) && (screen.height == 600))
    {
       	HWsize="height=112,width=310";
       	XYpos ="left=453,top=418";
    }
 else if ((screen.width == 1280) && (screen.height == 1024))
    {
       	HWsize="height=178,width=505";
       	XYpos ="left=735,top=723";
    }
 else
    {
       	HWsize="height=142,width=405";
       	XYpos ="left=580,top=543";
    }

window.name = 'meWindow'


var d = new Date();

meWindow=window.open(url,'meWindow',XYpos+","+HWsize+",scrollbar=yes,directories=no,location=no,menubar=no,personalbar=no,resizable=no,titlebar=no,toolbar=no");
// meWindow=window.open(url,d.getHours()+d.getMinutes()+d.getSeconds(),XYpos+","+HWsize+",scrollbar=yes,directories=no,location=no,menubar=no,personalbar=no,resizable=no,titlebar=no,toolbar=no");
//document.onload=msgWindow;

//var meWindow = window.open(url,'meWindow' ,"menu=yes,resizable=yes,height="+200+",width="+200+",scrollbars=yes");
//meWindow.location.href=url;
meWindow.focus();


}


function popupResize(url, width, height, scrollbars)
{
     scrollbars = (scrollbars == 1) ? "yes" : "no";
     var d = new Date();
     var win = window.open(url,d.getHours()+d.getMinutes()+d.getSeconds(),"menu=yes,resizable=yes,height="+height+",width="+width+",scrollbars="+scrollbars);
     win.focus();
}

function popupFix(url, width, height)
{
     popupFix(url, width, height, 1)
}

function popupFix(url, width, height, scrollbars)
{
     scrollbars = (scrollbars == 1) ? "yes" : "no";
     var d = new Date();
     var win = window.open(url,d.getHours()+d.getMinutes()+d.getSeconds(),"resizable=no,height="+height+",width="+width+",scrollbars="+scrollbars+",left=100,top=100");
     win.focus();
}

function popupWin(url)
{     
     var d = new Date();
     var height = 522;
     var width = 628; //622
     var win = window.open(url,d.getHours()+d.getMinutes()+d.getSeconds(),"menu=yes,resizable=yes,height="+height+",width="+width+",scrollbars=yes");
     win.focus();
}

function popupWinLaiCheng(url)
{     
     var d = new Date();
     var height = 580;
     var width = 790; 
     var win = window.open(url,d.getHours()+d.getMinutes()+d.getSeconds(),"menu=yes,resizable=yes,height="+height+",width="+width+",scrollbars=yes");
     win.focus();
}

function popupWinLMT(url)
{     
     var d = new Date();
     var height = 580;
     var width = 895; 
     var win = window.open(url,d.getHours()+d.getMinutes()+d.getSeconds(),"menu=yes,resizable=yes,height="+height+",width="+width+",scrollbars=yes");
     win.focus();
}

/*
function popupCenter()

var w = 480, h = 340;

if (document.all) {
   /* the following is only available after onLoad */
   /*
   w = document.body.clientWidth;
   h = document.body.clientHeight;
}
else if (document.layers) {
   w = window.innerWidth;
   h = window.innerHeight;
}

var popW = 300, popH = 200;

var leftPos = (w-popW)/2, topPos = (h-popH)/2;

window.open('page,html','popup','width=' + popW + ',height='+popH+',top='+topPos+','left='+leftPos);
}
*/



function showhide(what,what2){

	if (what.style.display=='none') {
		what.style.display='inline';
		what2.style.display='none';
	}	
	else{
		what.style.display='none';
		what2.style.display='inline';			
	}

}


function fmenu(menu,menu1, menu2, menu3){
	if( menu.style.display == "none"){
		menu.style.display = "block";
		menu1.style.display = "none";
		menu2.style.display = "none";
		menu3.style.display = "none";
		}
	else
		menu.style.display = "none";
		}