
function SHOW_MSG(msg) {
	with(document.getElementById("divv").style){  
  		left = (window.screen.width-468)/2
  		top  = 100
  		display = 'none'
  		position='absolute'
  		zIndex = 1002
  	}   
	var str = "";
	str += "<table style='width:468px;height:300px;background:url(/images/tc/bg.png);' border='0' cellpadding='0' cellspacing='0'>";
	str += "<tr><td style='height:150px' colspan='3'></td>";
	str += "</tr><tr><td style='width:100px'></td><td style='text-align:center;height:60px;'>";
	str += "<span style='color:white;font-size:15px;font-family:'؟¬جه''><b>"+msg+"<b></span></td>";
	str += "<td style='width:100px'></td></tr>";
	str += "<tr><td colspan='3' style='text-align:center;vertical-align:top'>";
	str += "<a href='javascript:back();'><img src='/images/tc/return.png' style='border:0'/></a></td></tr>";
	str += "</table>";
	document.getElementById("divv").innerHTML = str;
	document.getElementById("divv").style.display = "block";
	setTimeout(back, 3000);
}
function back() {
	document.getElementById("divv").style.display = "none";
}

function LOGIN(){
	with(document.getElementById("divl").style){  
  		left = (window.screen.width-468)/2+document.documentElement.scrollLeft;
  		top  = (window.screen.height-500)/2+document.documentElement.scrollTop;
  		display = 'none'
  		position='absolute'
  		zIndex = 1001
  	}   
	var str = "";
	str += "<form action='/frontuser.do' name='tlogin' method='post'>";
	str += "<table style='text-align:left;background:url(/images/tc/login.png);width:421px;height:300px' border='0' cellspacing='0' cellpadding='0'>";
	str += "<tr><td style='height:30px;text-align:right;' colspan='2'>";
	str += "<a href='javascript:clz();'><img src='/images/tc/x.png' style='border:0;vertical-align: bottom'></a>&nbsp;&nbsp;</td></tr>";
  	str += "<tr>";
	str += "<td colspan='2' style='height:56px;'></td>";
	str += "</tr>";
	str += "<tr>";
	str += "<td style='height:38px; width:160px;'></td>";
	str += "<td><input type='text' name='username' style='border:#824f31 solid 1px; height:20px; width:128px;'/></td>";
	str += "</tr>";
	str += "<tr>";
	str += "<td style='height:32px;'></td>";
	str += "<td><input type='password' name='password' style='border:#824f31 solid 1px; height:20px; width:128px;'/></td>";
	str += "</tr>";
	str += "<tr>";
	str += "<td style='height:36px;'></td>";
	str += "<td>";
	str += "<input type='text' name='passcode' style='border:#824f31 solid 1px; height:20px; width:50px;'/>";
	str += "<img name='CheckNumber' src='/common/randomNumber.jsp' onclick=\"this.src='/common/randomNumber.jsp?'+Math.random()\" style='vertical-align:middle;border:0;' width=50 height=20£¯>";
	str += "</td>";
	str += "</tr>";
	str += "<tr>";
	str += "<td colspan='2' style='text-align:center'><input type='image' src='/images/tc/dl.png' />&nbsp;<a href='/regmain.jsp'><img src='/images/tc/zc.png' border='0'  /></a></td>";
	str += "</tr>";
	str += "<tr style='height:30px;'><td colspan='2'></td></tr>";
	str += "</table>";
	str += "<input type='hidden' name='type' value='3' />";
	str += "<input type='hidden' name='status' value='onlogin' />";
	str += "<input type='hidden' name='RefUrl' value='"+window.location.href+"' />";
	str += "</form>";
	document.getElementById("divl").innerHTML = str;
	document.getElementById("divl").style.display = "block";
}

function clz(){
	document.getElementById("divl").style.display = "none";
}


