function goToLoginPage(url,path){
    if(!url || url=='1'){
    	url=top.location.href;
    }
	top.location=path+'/login_1.jsp?go_url='+encodeURIComponent(encodeURIComponent(url));
	/*
	*/
}
	function no_verify_dialog(dialog_url){
		if(m$('bgDiv')) return ;
		  var msgw,msgh,bordercolor;
		  msgw=300;                                  //提示窗口的宽度
		  msgh=150;                                  //提示窗口的高度
		  titleheight=25                             //提示窗口标题高度
		  bordercolor="#336699";                     //提示窗口的边框颜色
		  titlecolor="#99CCFF";                      //提示窗口的标题颜色
		  var sWidth,sHeight;                            //顶层窗体的宽和高
		  sWidth=top.document.body.offsetWidth;      //遮罩层的宽度
		  sHeight=top.document.body.offsetHeight;        //遮罩层的高度
		  if(sHeight<top.screen.height)
		  {
		       sHeight=top.screen.height;     //窗口滚动条位置不在0点，则遮罩层高度为屏幕高度
		  }
		  //设置消息框的一些属性
		  var msgObj=top.document.createElement("div")
		  msgObj.setAttribute("id","bgDiv");
		  msgObj.setAttribute("align","center");
		  msgObj.style.border="0px solid " + bordercolor;
		  msgObj.style.position = "absolute";
		  msgObj.style.left = "50%";
		  msgObj.style.top = "30%";
		  msgObj.style.font="12px 宋体";
		 //msgObj.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=30';
		  msgObj.style.marginLeft = "-125px" ;
		  msgObj.style.marginTop = -75+top.document.documentElement.scrollTop+"px";
		  msgObj.style.width = msgw + "px";
		  msgObj.style.height =msgh + "px";
		  msgObj.style.textAlign = "center";
		  msgObj.style.zIndex = "10001";
		//消息框的标题栏
		var iframe = top.document.createElement("iframe");
		iframe.setAttribute("id","iframe");
		iframe.frameBorder='0';
		iframe.width='350px';
		iframe.height='200px';
		iframe.src=dialog_url;
		msgObj.appendChild(iframe); 
		top.document.body.appendChild(msgObj);                 //添加高亮层
		//top.document.getElementById("msgDiv").appendChild(p); //添加提示内容
	}
	
	function ljhy_order_dialog(dialog_url){
		if(m$('bgDiv')) return ;
		  var msgw,msgh,bordercolor;
		  msgw=300;                                  //提示窗口的宽度
		  msgh=150;                                  //提示窗口的高度
		  titleheight=25                             //提示窗口标题高度
		  bordercolor="#336699";                     //提示窗口的边框颜色
		  titlecolor="#99CCFF";                      //提示窗口的标题颜色
		  var sWidth,sHeight;                            //顶层窗体的宽和高
		  sWidth=top.document.body.offsetWidth;      //遮罩层的宽度
		  sHeight=top.document.body.offsetHeight;        //遮罩层的高度
		  if(sHeight<top.screen.height)
		  {
		       sHeight=top.screen.height;     //窗口滚动条位置不在0点，则遮罩层高度为屏幕高度
		  }
		  //设置消息框的一些属性
		  var msgObj=top.document.createElement("div")
		  msgObj.setAttribute("id","bgDiv");
		  msgObj.setAttribute("align","center");
		  msgObj.style.border="0px solid " + bordercolor;
		  msgObj.style.position = "absolute";
		  msgObj.style.left = "50%";
		  msgObj.style.top = "30%";
		  msgObj.style.font="12px 宋体";
		 //msgObj.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=30';
		  msgObj.style.marginLeft = "-125px" ;
		  msgObj.style.marginTop = -75+top.document.documentElement.scrollTop+"px";
		  msgObj.style.width = msgw + "px";
		  msgObj.style.height =msgh + "px";
		  msgObj.style.textAlign = "center";
		  msgObj.style.zIndex = "10001";
		//消息框的标题栏
		var iframe = top.document.createElement("iframe");
		iframe.setAttribute("id","iframe");
		iframe.frameBorder='0';
		iframe.width='350px';
		iframe.height='200px';
		iframe.src=dialog_url;
		msgObj.appendChild(iframe); 
		top.document.body.appendChild(msgObj);                 //添加高亮层
		//top.document.getElementById("msgDiv").appendChild(p); //添加提示内容
	}
	
	function closeLoginDialog(){
	  try{
		document.body.removeChild(document.getElementById('bgDiv'));
		}catch(e){alert(e.message);}
	}
	
	function setHome(obj,vrl)
    {
    	if(vrl==null || vrl=='')
    		vrl = 'http://www.gybao.com';
        try
        {
                obj.style.behavior='url(#default#homepage)';
                obj.setHomePage(vrl);
        }
        catch(e){
                if(window.netscape) {
                        try {
                                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 
                        } 
                        catch (e) { 
                                alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将[signed.applets.codebase_principal_support]设置为'true'"); 
                        }
                        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
                        prefs.setCharPref('browser.startup.homepage',vrl);
                 }
        }
    }
    function addFavorite(sURL, sTitle)
    {
        try
        {	
       		sURL = window.location.href;
       		sTitle=document.title;
            window.external.addFavorite(sURL, sTitle);
        }
        catch (e)
        {	
            try
            {
                window.sidebar.addPanel(sTitle, sURL, "");
            }
            catch (e)
            {
                alert("加入收藏失败，请使用Ctrl+D进行添加");
            }
        }
    }