function htmlstuffPopupwin1(url)
{
var popupwin1
	popupwin1 = window.open(url,"",'toolbar=0,location=0,menubar=0,scrollbars=0,resizable=0,width=800,height=700,maximize=null');
	if( navigator.appName.substring(0,8) == "Netscape" )
	{
		popup.location = popupURL;
	}
}

/*




function IsEmpty(obj,fieldName){
	if(obj != "[object]") return true;
	var val = obj.value;
	var tempVal = "";
	for(var i=0; i<= val.length; i++){
		if (val.substr(i,1) != " "){
			tempVal = tempVal + val.substr(i,1);
		}
	}
	if (tempVal.length == 0){
		if(fieldName.length > 0){
			alert("Please enter \"" + fieldName + "\".");
			obj.focus();
		}	
		return true;
	}
	return false;
}

function ValidateEmail(obj, fieldName){
	if(IsEmpty(obj,fieldName)) return false;

	if(obj != "[object]") return false;
	var val = obj.value;
	var tempVal = "";
	 if((val.length<5) || ((val.indexOf("@")) > (val.lastIndexOf("."))) || (val.indexOf("@")<=1) || (val.indexOf(".") <= 1)){
		alert("Please enter valid \"" + fieldName + "\".");
		obj.focus();
		return false;
	}
	return true;
}

function ValidateID(val){
	var txt=val.length
	//alert(txt)
	for(var i=0; i<txt; i++){
		var ch=val.substr(i,1)
		if(!checkID(ch)||(ch==" ")){
			return false		
		}	
	}
	return true	
}
function checkID(ch){
//	alert(ch.charCodeAt(0))
	if(((ch>=0)&&(ch<=9))||((ch.charCodeAt(0)>=65)&&(ch.charCodeAt(0)<=90))||((ch.charCodeAt(0)>=97)&&(ch.charCodeAt(0)<=122)))
		return true	
	else return false
}

function ValidateTelePhone(obj, fieldName, bAllowEmpty){
	if(bAllowEmpty) {
		if(IsEmpty(obj,"")) return true;
	}else{
		if(IsEmpty(obj, fieldName)) return true;
	}
	var val = obj.value;
	var validChars = "0123456789-( )";
	for(var i=0; i<val.length; i++){
		var ch=val.substr(i,1)
		if(validChars.indexOf(ch)<0){
			if(fieldName.length > 0){
				alert("Please enter valid \"" + fieldName + "\"." + ch);
				obj.focus();
			}	
			return false;		
		}	
	}
	return true
}




{
function Validate(){
	if(IsEmpty(document.frmMain.txtOrgName, "Organization Name")) return false;
	if(!ValidateTelePhone(document.frmMain.txtTelNo, "Tel. No.",true)) return false;
	if(ValidateEmail(document.frmMain.txtEmail, "Email Address")) return false;
	return false;
}
*/
