/*****	路径：base.js	********/
/*****	名称：底层框架	********/
/*****	作者：应龙	********/
/*****	时间：2008-9-19	********/
/*****	介绍：弹出层	********/

/*层高*/
var zIndex=100;
/*调用函数*/
function popUp(id,title,url,width,height,callBack,collocate){
	zIndex+=2;
	var conHeight=height-20;
	/*var con='<iframe id="'+id+'_iframe" src="'+url+'" scrolling="auto" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" class="conIframe" style="height:'+conHeight+'px;"></iframe>';*/
	var con='<link href="css\/style.css" rel="stylesheet" type="text\/css"><div class="mg_t13px">';
 
	con+='  <div style="height:22px;line-height:22px"><div class="font_blue"><div style="width:26px;margin-left:30px" class="f_left"><img src="images\/icon_prompt.gif" width="22" height="22" \/><\/div>您需要登录后才能继续刚才的操作<\/div><\/div>';
	con+='  <form action="memLogin.do" method="post">';
	con+='  <table border="0" align="center" cellpadding="0" cellspacing="0" class="left" style="margin-left:52px">';
	con+='    <tr>';
	con+='      <td height="30" align="right" class="lh_28px">号<img src="images\/nbsp.gif" width="11" height="11" align="absmiddle" \/>码：<\/td>';
	con+='      <td>';
	con+='	  	<input name="ephId" type="text" class="textfield IME_d" size="18" maxlength="10" \/>';
	con+='	  <\/td>';
	con+='    <\/tr>';
	con+='    <tr>';
	con+='      <td height="30" align="right" class="lh_28px">密<img src="images\/nbsp.gif" width="11" height="11" align="absmiddle" \/>码：<\/td>';
	con+='      <td>';
	con+='	  	<input name="passWd" type="passWord" class="textfield IME_d" size="18" maxlength="30" \/><a href="http://pass.doshow.cn/passport/reset_auth.jsp" target="_blank" class="font_orange_uline lh_28px mg_l5px">找回密码<\/a>';
	con+='	  <\/td>';
	con+='    <\/tr>';
	con+='    <tr>';
	con+='      <td height="30" align="right" class="lh_28px">验证码：<\/td>';
	con+='      <td><input name="confirmCode" type="text" class="textfield IME_d" size="6" maxlength="4" \/>';
	con+='        <img  src="..\/personal\/gif\/" width="60" height="20" align="absmiddle" \/><\/td>';
	con+='    <\/tr>';
	con+='    <tr>';
	con+='      <td height="38">&nbsp;<\/td>';
	con+='      <td valign="bottom"><span class="f_left">';
	con+='        <input name="input" type="image" src="images\/button_login.gif" class="mg_r5px"\/>';
	con+='       <\/span><span class="f_left"><a href="http://haoma.doshow.cn/" target="_blank" class="font_orange_uline font_Arial lh_28px">10秒注册<\/a><\/span><\/td>';
	con+='    <\/tr>';
	con+='  <\/table>';
	con+='  <\/form>';
	con+='<\/div>';
	popUpAdapter(id,{title:title,con:con,width:width,height:height,conHeight:conHeight,css:'popUpCss',bgCss:'popUpBgCss',zIndex:zIndex},callBack,collocate)
}

/*关闭当前层*/
var base=parent.popUpBase;
var url=location.href;
//var thisId=base.getUrlParameter(url).id;

function closeThis(){
	var base=parent.popUpBase;
	var url=location.href;
	var getUrl=base.getUrlParameter(url);
	var thisId=getUrl.id;
	var parentId=getUrl.parent;
	if(parentId){
		var arr=base.tagArr(parent.document,'iframe'),len=arr.length,i;
		for(i=0;i<len;i++){
			if(arr[i].id==(parentId+'_iframe')){
				alert(top.window.frames[i].document.body.innerHTML)
			}
		}
	}
	parent.popUpClose([thisId,thisId+'_bg']);//关闭当前层
}