﻿<!--
//判断浏览器  Powered by Grant; QQ/MSN/E-mail: YoushowBridal@gmail.com
/*   if(window.XMLHttpRequest){
        if(!window.ActiveXObject){
            document.write("<link rel=\"stylesheet\" href=\"/skin/en/style.css\" media=\"all\" type=\"text/css\" />")
        }else{
            document.write("<link rel=\"stylesheet\" href=\"/skin/en/style.css\" media=\"all\" type=\"text/css\" />")
        }
    }else{
        document.write("<link rel=\"stylesheet\" href=\"/skin/en/style_ie6.css\" media=\"all\" type=\"text/css\" />")
	}
*/
//-->

//弹出窗口
	function openWindow(url, name, width, height) {
window.open( url, name, 'toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=no,scrollbars=yes,width='+width+',height='+height+',top=30,left=230');
}

//打开新窗口
function popnew(url,title,width,height){
    var w = 1024;
    var h = 768;

    if (document.all || document.layers){
        w = screen.availWidth;
        h = screen.availHeight;
    }

    var leftPos = (w/2-width/2);
    var topPos = (h/2.3-height/2.3);

    window.open(url,title,"width="+width+",height="+height+",top="+topPos+",left="+leftPos+",scrollbars=no,resizable=no,status=no")
}

//禁用鼠标右键
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")

function stopError() {
return true;
          }
window.onerror = stopError;

function showbg(){
eval("select_list.style.display='';");
}
function showoutbg(){
eval("select_list.style.display='none';");
}

function doZoom(size){
	document.getElementById('zoom').style.fontSize=size+'px'
	}