//VALIDATION FOR ALPHA NUMERICAS
function chkAlphaNum(strInp) {
  var regex = /^[a-zA-Z0-9 ]+$/
  return regex.test(strInp);
}

//VALIDATION FOR SPECIAL NAMES
function chkAlphabetsQuote(strInp) {
  var regex = /^[a-zA-Z \']+$/
  return regex.test(strInp);
}

//VALIDATION FOR Telephone number
function chkTel(strInp) {
	var regex = /^[0-9+-- ]+$/
	return regex.test(strInp);
}

//VALIDATION FOR NUMBER
function chkNum(strInp) {
  var regex = /^[0-9]+$/
  return regex.test(strInp);
}

//EMAIL VALIDATION
function emailValidation(strInp){
  var regex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/;
  return regex.test(strInp);
}
//POPUP WINDOW
//window open
function popUpWindow(theURL,winName) {
closePopUpWindow();
openedWindow = open(theURL,winName,"left=0,top=0,screenX=0,screenY=0,width=400,height=400");
openedWindow.onunload = confirmClosed;
onunload = closePopUpWindow;
windowOpen = true;
return (openedWindow);
}
//Popup close
function closePopUpWindow(){
	if (window.windowOpen&&window.openedWindow){
		openedWindow.close();
		confirmClosed();
	}
}
//Confirmation on childwindow closing
function confirmClosed(){
	windowOpen = false;
}

function popUp(emailTo){
	//NEW WINDOW OPEN WITH THE ABOVE COLLECTIONS
	pageURL = "/admin/emailTo.asp?et="+emailTo
	popUpWindow(pageURL,"_blank");
}
//-->
