//document.writeln("	<tr>");

function ShowCode(StrSql,StrCurrentValue){
 	var abc;
	abc=window.showModalDialog('/admin/tables/showcode.asp?strsql='+StrSql+'&CurrentValue='+StrCurrentValue,'SomeWin','left=100,top=60,width=80,height=80');
	if (typeof(abc)=="undefined"){
	abc=""}
	//alert(abc);
	return abc;
}

function ShowCodeEx(StrSql,StrCurrentValue){
 	var abc;
	abc=window.open('/admin/tables/showcodeEx.asp?strsql='+StrSql+'&multilevel=true&CurrentValue='+StrCurrentValue,'SomeWin','left=100,top=60,width=380,height=400');
	if (typeof(abc)=="undefined"){
	abc=""}
	if (abc==""){
	abc=StrCurrentValue}	
	return "";
}

function PopOldFriend(){
	SubscibeWindow=window.open('/comm/login/OldFriend.htm','SomeWin','toolbar=no,scrollbars=no,menubar=no,left=100,top=60,width=400,height=360');
SubscibeWindow.focus();}

function Sorry()
{
alert("业务还没开展，真对不起，小杜忙不过来，请您先在其它地方转转。");}

function WinOpen(filename){
	//filename="http://www.100md.com"+filename
	NewWin=window.open(filename,'',"toolbar=0,location=0,status=0,menubar=0,resizable=1,scrollbars=1,top=0,left=0,width=780,height=547");
	//screen.availWidth,screen.availHeight
	NewWin.focus();
}

function xd(filename){
	filename="http://www.100md.com"+filename
	NewWin=window.open(filename,'','');
	NewWin.focus();
}


function Redirect(filename){
//	alert (filename);
	filename="http://www.100md.com"+filename
	if (filename!=""){
	if (filename=="*") {Sorry();}
	else
	{
	top.location.href=filename;
	}
	}
}

if (top.frames.length!=0) {window.parent.HideLeft()}