﻿// JScript 文件

function cls(){ 
with(event.srcElement) 
if(value=="请输入查询关键词" || value=="请输入招聘企业名称" ) value="" 
} 
function res(){ 
with(event.srcElement) 
if(value=="") value=defaultValue 
} 

function selecttag(showContent,selfObj){
	// 操作标签
	var tag = document.getElementById("tags").getElementsByTagName("a");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
	}
	selfObj.className = "cur";
	// 操作内容
//	for(i=0; j=document.getElementById("tagcontent"+i); i++){
//		j.style.display = "none";
//	}
//	document.getElementById(showContent).style.display = "block";
}

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=1,"
+ "scrollbars=0,"
+ "status=0," 
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //for Netscape
+ "screeny=" + yposition + "," //for Netscape
+ "left=" + xposition + "," //for IE
+ "top=" + yposition; //for IE 
window.open( url,winName,theproperty );
}
