function IsValidEmail(strEmail){
	var re = new RegExp("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\\.[A-Z]{2,6}$", "i");
	
	return(re.test(strEmail));
}

function IsValidInteger(strTest){
	var re = new RegExp("^[0-9]+(\\.[0-0]*)?$", "i");
	
	return(re.test(strTest));
}

function RemoveCommas(strTest){
	
	var re = new RegExp(",", "i");
	
	return(strTest.replace(re, ""));
}

function IsEmpty(strInput){
	
	if(strInput == null || strInput == "" ){
		return(true);
	}
	
	return(false);	
}

function DoNothing(){
	// do nothing
}
	
//-------------------------------------------------------------------
// isNull(value)
//   Returns true if value is null
//-------------------------------------------------------------------
function isNull(val){return(val==null);}

//-------------------------------------------------------------------
// isBlank(value)
//   Returns true if value only contains spaces
//-------------------------------------------------------------------
function isBlank(val){
	if(val==null){return true;}
	for(var i=0;i<val.length;i++) {
		if ((val.charAt(i)!=' ')&&(val.charAt(i)!="\t")&&(val.charAt(i)!="\n")&&(val.charAt(i)!="\r")){return false;}
		}
	return true;
	}
	
	function ViewDetails(pageURL){

    var parentWindow  = window.opener;
    
    parentWindow.location = pageURL;
    parentWindow.focus();
    window.close()
}