var ifrunj = "0";

function to_url(lb){
	var ls_url='#';
	 var ls_tg="_blank";
	if (lb=='1') {
		 ls_url = "http://www.gdht.net.cn:8887/wisetop" ;
	}
	if (lb=='2') {
		 ls_url = "ftp://www.gdht.net.cn:2100" ;
	}
	if (lb=='3') {
		 ls_url = "http://mail.gdht.net.cn" ;
	}
	//"height=100, width=400, toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no") 
	var newWindow=window.open(ls_url, ls_tg,"toolbar=no,menubar=yes,location=no, status=no");
	newWindow.focus();
} 	    
function winopen(targeturl){
newwin=window.open("","","scrollbars")
if (document.all){
newwin.moveTo(0,0)
newwin.resizeTo(screen.width,screen.height)
}
newwin.location=targeturl
}

//打开窗口窗口居中
function openwin(nn,width,height){
	    var newleft,newtop;
        var target="_blank";
		if (width==null) width=700;
		if(height==null) height=600;
		if (width > screen.width)
		     newleft= (width  - screen.width)/2;
		else
		  newleft= (screen.width  - width)/2;
		if (height > screen.height)
		     newtop= (height  - screen.height)/2;
		else
		  newtop= (screen.height  - height)/2;
		var parameters="height="+height+",width="+width+",left="+newleft+",top="+newtop +",status=no,scrollbars=yes,toolbar=no,menubar=no,resizable=yes,location=no";
		var newWindow=window.open(nn, target, parameters);
		newWindow.focus();
	}

//全屏显示
function openwin_full(nn,width,height){
	    var newleft,newtop;
        var target="_blank";
		if (width==null) width=700;
		if(height==null) height=600;
		if (width > screen.width)
		     newleft= (width  - screen.width)/2;
		else
		  newleft= (screen.width  - width)/2;
		if (height > screen.height)
		     newtop= (height  - screen.height)/2;
		else
		  newtop= (screen.height  - height)/2;
		var parameters="height="+height+",width="+width+",left="+newleft+",top="+newtop +",status=no,scrollbars=no,toolbar=no,menubar=no,resizable=no,directories=0,fullscreen=1,location=no";
		var newWindow=window.open(nn, target, parameters);
		newWindow.focus();
	}
	
function showwin(targeturl,parameters){
if(!parameters) {	parameters="status:0;dialogWidth:800px;dialogHeight:600px;dialogtop:20px;dialogleft:100px";}
   showModalDialog(targeturl,window,parameters); 
}

