

//變更圖片路徑
function ChangePicPath(objname,picpath){
	if (typeof(objname)=='object') objname.src=picpath;
	else document.images[objname].src=picpath;
	
}

//判斷全形
function CheckHolomorphic(strValue){
	for(i=0;i<strValue.length;i++){
		AscNum=strValue.charCodeAt(i);
		if (AscNum<0 || AscNum>255){return true;}
	}
	return false;
}
/*
function CheckJava(){
	document.write('<input id=chkJavaOpen name=chkJavaOpen type=hidden value=0>')
	chkobj=document.getElementById('chkJavaOpen')
	chkobj.value="1"
	alert(chkobj.value)
}
*/
document.onload=CheckJava();
function CheckJava(){
	for (i in document.forms){
		myform=document.forms[i];
		straction=myform.action;
		if(straction!='' && straction!=undefined){
			if (straction.indexOf('chkJavaOpen',0)>-1){}
			else if(straction.indexOf('?',0)>-1){straction=straction.replace('?','?chkJavaOpen=1&');}
			else {straction=straction+'?chkJavaOpen=1';}
			myform.action=straction;
			//alert(myform.action);
		}
	}
	/*
	for (i in document.links){
		mylink=document.links[i];
		strlink=mylink.href;
		if(strlink!='' && strlink!=undefined){
			if (strlink.indexOf('chkJavaOpen',0)>-1){}
			else if(strlink.indexOf('?',0)>-1){strlink=strlink.replace('?','?chkJavaOpen=1&');}
			else {strlink=strlink+'?chkJavaOpen=1';}
			mylink.href=strlink;
			alert(mylink.href);			
		}
	}
	*/
}