
<!-- Idea by:  Nic Wolfe -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=400,height=500,left = 312,top = 134');");
}
function popUp3(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=600,height=500,left = 312,top = 134');");
}


function containsAlphabets(checkString) {
        var tempString="";
        var regExp = /^[A-Za-z]$/;
        if(checkString != null && checkString != "")
        {
          for(var i = 0; i < lastName.length; i++)
          { 
            if (!checkString.charAt(i).match(regExp))
            {
              return false;
            }
          }

        }
        else
        {
          return false;
        }
        return true;
}
function popUp2(URL) {
day = new Date();
id = "my_window";
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=400,height=200,left = 312,top = 134');");
}

function containsAlphabets(checkString) {
        var tempString="";
        var regExp = /^[A-Za-z]$/;
        if(checkString != null && checkString != "")
        {
          for(var i = 0; i < lastName.length; i++)
          { 
            if (!checkString.charAt(i).match(regExp))
            {
              return false;
            }
          }

        }
        else
        {
          return false;
        }
        return true;
}

function validateForm(){
	 from = document.emailbox.frommsg.value
	if (from = ""){
		alert("Please enter your first & last name, sorry try again!")
		
	}else if (from.length > 100){
	
	  alert("Your name is too long, sorry try again!")
	
    }else if (containsAlphabets(from)=false){
	  alert("Your name can only contain Alphabetical strings!")
	  
	 
	}
}
// End -->

