function validLen(temp,len) {
   	 str = new String(temp);
	 if (str.length < len) 
	 	return false;
	 return true;
}

function error(msg,elem)	{
	if (errfound) 
		return;
	window.alert(msg);
	elem.focus();	
	errfound = true;
}

function validEmail(temp) {
	str = new String(temp)
	if ((str.indexOf("@")==-1 || str.indexOf(".")==-1))
	     return false;
	return true;
}

function open_window(w_url,w_name) {
	var win = window.open(w_url,w_name,'width=610,height=410,scrollbars=yes,resizable=no');
}

function open_payWindow(w_url,w_name) {
	var win = window.open(w_url,w_name,'width=500,height=560,scrollbars=no,resizable=no');
}