//模拟alert
function ShowAlert(title,content)
        {
            var pop=new Popup({ contentType:1,isReloadOnClose:false,width:340,height:80});
            pop.setContent("title",title);
            pop.setContent("alertCon",content);
            pop.build();
            pop.show();
        }
//模拟confirm
 function ShowConfirm(title,content,url)
        {
           var pop=new Popup({ contentType:3,isReloadOnClose:false,width:340,height:80});
           pop.setContent("title",title);
           pop.setContent("confirmCon",content);
           pop.setContent("callBack",ShowCallBack);
           pop.build();
           pop.show();
           function ShowCallBack()
			{
				window.location=url
			}
        }
		
//模拟Iframe
 function ShowIframe(title,url,w,h,imgurl)
		{
       var pop=new Popup({ contentType:1,scrollType:'no',isReloadOnClose:false,width:w,height:h});
       pop.setContent("contentUrl",url);
       pop.setContent("title",title);
       pop.build();
       pop.show();
        }
		
		 
		
//嵌套内页
 function Login(url,w,h)
        {
        var pop=new Popup({ contentType:1, isReloadOnClose:false, width:w, height:h });
        pop.setContent("title","注册用户登陆");
        pop.setContent("contentUrl",url);
        pop.build();
        pop.show();
        }
		
//返回用户提交信息
    function Resure(title,str,w,h)
   {
    var pop=new Popup({ contentType:4,isReloadOnClose:false,width:w,height:h});
    pop.setContent("title",title);
    pop.setContent("alertCon",str);
    pop.build();
    pop.show();
	}	
//关闭弹出层

//模拟confirm
 function ShowConfirms(title,content,url)
        {
           var pop=new Popup({ contentType:3,isReloadOnClose:false,width:340,height:80});
           pop.setContent("title",title);
           pop.setContent("confirmCon",content);
           pop.setContent("callBack",ShowCallBack);
		   pop.setContent("callfirmCon",ShowIframeClose);
           pop.build();
           pop.show();
           function ShowCallBack()
			{
				window.location=url
			}
        }
		function ShowIframeClose()
		{
		ShowIframe.close();
		ShowIframe=null;
		}
