 function openView(url)
{
window.open(url,"name","width=445,height=435,screenX=10,screenY=10,top=10,left=10,scrollbars=yes,location=no,resizable=yes")
} 
function submitIt3(myForm) {
	re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
	re1 = /^\D{3,}/
	re2 = /^\D{10,}/

		if (!re1.test(myForm.name.value)) 
		{
	alert("Please Enter Your Name")
	myForm.name.focus()
	myForm.name.select()
	return false
	}
if ((!re.test(myForm.email.value)) && (myForm.email.value.length != 0) ){
	alert("Invalid email address - Leave it Blank or Enter a Valid Address " )
	myForm.email.focus()
	myForm.email.select()
	return false
	}
			
				if (re2.test(myForm.comments.value)) {
				return true
			}
			else {
				alert("Please Enter a Longer Comment")
				myForm.comments.focus()
				myForm.comments.select()
			}
			return false
}
function submitIt2(myForm) {
	re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
	re2 = /^\D+/
	
			if (!re2.test(myForm.Text.value)) 
		{
	alert("Please Enter Your Comment")
	myForm.Text.focus()
	myForm.Text.select()
	return false
	}
	
		if (!re2.test(myForm.Name.value)) 
		{
	alert("Please Enter Your Name")
	myForm.Name.focus()
	myForm.Name.select()
	return false
	}

	if ((myForm.Email.value == '' ) || (re.test(myForm.Email.value)) ){
		return true}
	else{
	alert("Invalid email address - Leave it Blank or Enter a Valid Address")
	myForm.Email.focus()
	myForm.Email.select()
	return false
	}
}
function submitIt(myForm) {
	re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
	re2 = /^\D+/
		if (!re2.test(myForm.Name.value)) 
		{
	alert("Please Enter Your Name")
	myForm.Name.focus()
	myForm.Name.select()
	return false
	}
	if (re.test(myForm.Email.value)) {
		return true}
	else{
	alert("Invalid email address")
	myForm.Email.focus()
	myForm.Email.select()
	return false
	}
}
function show_name(course_name) {
  document.show.course_name.value=course_name;
  }
  

 function openTellFriend(url)
{
window.open(url,"name","width=340,height=560,screenX=20,screenY=20,top=20,left=20,scrollbars=yes,location=no,resizable=yes")
} 

function show_definition(definition_text) {
  document.show.definition.value=definition_text;
  }

function formHandler(form){
var URL = form.site.options[form.site.selectedIndex].value;
window.location.href = URL;
}

function pollHandler(form){
var URL = document.poll.type.options[document.poll.type.selectedIndex].value;
window.location.href = URL;
}

function fChkKey()
{
 if (event.keyCode == 13 )
  event.keyCode = 9
}

function mainmap(option) {
	if (option.checked) {
		window.location.href = option.value;
	}
}
