/*  Common JavaScript , version 1.0.0
 *  (c) 2006 Xiang <xiangzi@gmail.com>
 *  Create at Aug,28th,2006
 *  For details, see the web site: http://xiang.hnubbs.net/
 *
/*--------------------------------------------------------------------------*/

<!--

/*--Caution!!!-Chinese Remarks Will Make The Javascript Interpreted Abnormality !!!---*/

//Only permit characters,number,comma,full stop
function SpecChar(obj)
{	
	if(event.type=="keyup")
	{
		if(/[^\u4e00-\u9fa5\w,\.]/.test(obj.value)) obj.value=obj.value.substring(0,obj.value.length-1);return false;
	}
}

//
function isNumeric(Num)
{
	var re=/^\d+$/g;
	return re.test(Num);
}

/*--------------------------------------------------------------------------*/

function QueryString(item){ 
	var sValue=location.search.match(new RegExp("[\?\&]"+item+"=([^\&]*)(\&?)","i")) 
	return sValue?sValue[1]:sValue 
} 

/*--------------------------------------------------------------------------*/
		
function div_enable(isDisplay,divID)
	{
		if(isDisplay)
		{
			document.getElementById(divID).style.position="absolute";
			document.getElementById(divID).style.width="500px";
			document.getElementById(divID).style.height="800px";
			document.getElementById(divID).style.top="0";
			document.getElementById(divID).style.display="block";
		}
		else
		{
			document.getElementById(divID).style.display="none";
		}
}	

function cancelData(obj)
{
	if(obj.value!="")
	{
		obj.value="";
	}
}
function ExamQuery()
{
	var val=document.getElementById('zch').value;
	//window.open('../RIGHT/Examination/ScoreQuery.aspx?zch='+val,)
	window.open('../RIGHT/Examination/ScoreQuery.aspx?zch='+val,'','width=600,height=400,left='+(screen.width- 520) / 2+',top='+(screen.height -420) / 2+',scrollbars=0,resizable=0,location=0,menu=0,toolbar=no,directories=no,menubar=0');
}
//-->

