/*
=============================================================================================================
						Jakarta, April 2006																	
						Created by Komputeron.com
						welcome@komputeron.com
						
						Komputeron.com version 1.1						
						Jakarta, September 2007
=============================================================================================================
*/
//write email address by javascript
var strEmail;
strEmail="welcome";
strEmail+="@";
strEmail+="komputeron";
strEmail+=".";
strEmail+="com";

//set window status
window.status="Komputeron.com";

//this is for table.tr.style.display
var strTrShow;
if((navigator.userAgent.indexOf('Firefox')>=0)||(navigator.userAgent.indexOf('Opera')>=0)) {
	strTrShow='table-row';
} else {
	strTrShow='block';
}

function valid(strParam,intType,strAddition) {
	var strPattern, blnMatch;
	
	blnMatch=false;
	
	if(intType==1) {
		strPattern="A-Za-z"
	}
	if(intType==2) {
		strPattern="0-9"
	}
	if(intType==3) {
		strPattern="A-Za-z0-9"
	}
	
	var objRegExp = new RegExp("[^"+strPattern+strAddition+"]");
	if(objRegExp.test(strParam)) {
		blnMatch=true;
	}
	return blnMatch;
}
function OpenWindow(url) {	//normal popup
	var screenWidth=screen.availWidth;
	var screenHeight=screen.availHeight;
	var intTop, intLeft;
	
	intLeft=(screenWidth/2)-(800/2);
	intTop=(screenHeight/2)-(500/2);
	NewWin = window.open(url,"","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=500,left="+intLeft+",top="+intTop);
}
function OpenWindow2(intWidth,intHeight) {	//popup without url - the content is write by opener.
	var screenWidth=screen.availWidth;
	var screenHeight=screen.availHeight;
	var intTop, intLeft;
	
	intLeft=(screenWidth/2)-(intWidth/2);
	intTop=(screenHeight/2)-(intHeight/2);
	NewWin = window.open("","","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+intWidth+",height="+intHeight+",left="+intLeft+",top="+intTop);
}
