var validClass = 'textfield';
var errorClass = 'errortextfield';
function byID(id){
	return document.getElementById(id);
}
function getInnerSize(){
	var x,y;
		if (self.innerHeight) // all except Explorer
		{
			x = self.innerWidth;
			y = self.innerHeight;
		}else if (document.documentElement && document.documentElement.clientHeight){
			x = document.documentElement.clientWidth;
			y = document.documentElement.clientHeight;
		}else if (document.body){
			x = document.body.clientWidth;
			y = document.body.clientHeight;
		}
		return {"width":x,"height":y}
}
function ResizeContent(){
	innerSize = getInnerSize();
	byID('mainTable').style.height = innerSize.height+"px";
}
function checkemail(str){
	//str=document.validation.emailcheck.value
	filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (filter.test(str))
		testresults=true
	else{	
		testresults=false
	}
	return (testresults)
}
