﻿// JavaScript Document

//弹出窗口函数
function openwindow( url, winName, width, height) 
{
xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ))
{
xposition = (screen.width - width) / 2;
yposition = (screen.height - height) / 2;
}
theproperty= "width=" + width + "," 
+ "height=" + height + "," 
+ "location=0," 
+ "menubar=0,"
+ "resizable=0,"
+ "scrollbars=0,"
+ "status=0," 
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //仅适用于Netscape
+ "screeny=" + yposition + "," //仅适用于Netscape
+ "left=" + xposition + "," //IE
+ "top=" + yposition; //IE 
window.open( url,winName,theproperty );
}

//弹出窗口函数
function imeWin(file,w,h){
   window.open(file,'','resizable=yes,width='+w+",height="+h+',scrollbars=yes,left='+(screen.availWidth-w)/2+',top='+(screen.availHeight-h)/2);
}

//留言按钮
function message(mall){
    obj = document.getElementById(mall);
    if(obj.style.display=="none"||obj.style.display==""){
    obj.style.display = "block"
    }else{
    obj.style.display = "none"
    }
}

var browser=navigator.appName;

function showProList(){
	if(document.getElementById("prolistDIV").style.visibility=="hidden"){		
		document.getElementById("prolistDIV").style.visibility="visible";	
		document.getElementById("prolistDIV").focus();
	}
}


function showLink(){
	if(document.getElementById("linkDIV").style.visibility=="hidden"){		
		document.getElementById("linkDIV").style.visibility="visible";	
		document.getElementById("linkDIV").focus();
	}
}
