
<!-- Declare All Pop-Up Windows
function open_tour( link, width, height)  {
window.open(link,"tour","width=" + width + ",height=" + height + ",location=no,resizable=no,scrollbars=no");
}

<!-- SHOW-HIDE DIV
	function showHideDiv(divId1){
		var selectedDiv1 = document.getElementById(divId1);
		if (selectedDiv1.style.visibility == 'hidden') {
			selectedDiv1.style.visibility = "visible";
			selectedDiv1.style.display= "block";
		}else{
			selectedDiv1.style.visibility = "hidden";
			selectedDiv1.style.display= "none"
		}
	}
//-->

<!-- Declare All Pop-Up Windows
function open_tour( link, width, height)  {
window.open(link,"tour","width=" + width + ",height=" + height + ",location=no,resizable=no,scrollbars=no");
}

function openPopup(url) {
    myPopup = window.open(url,'popupWindow','width=170,height=200,left=20,top=20,scrollbars=no');
    if (!myPopup.opener)
         myPopup.opener = self; 
}
function openPopup2(url) {
    myPopup = window.open(url,'popupWindow','width=650,height=500,left=20,top=20,scrollbars=yes');
    if (!myPopup.opener)
         myPopup.opener = self; 
}


<!-- Begin Email Address Validation
function emailCheck (emailStr) {
var emailPat=/^(.+)@(.+)$/
var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
var validChars="\[^\\s" + specialChars + "\]"
var quotedUser="(\"[^\"]*\")"
var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
var atom=validChars + '+'
var word="(" + atom + "|" + quotedUser + ")"
var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")
var matchArray=emailStr.match(emailPat)
if (matchArray==null) {
	alert("Please make sure your email address is correct!")
	return false
}
var user=matchArray[1]
var domain=matchArray[2]

// See if "user" is valid 
if (user.match(userPat)==null) {
    // user is not valid
    alert("Please make sure your email address is correct!")
    return false
}

var IPArray=domain.match(ipDomainPat)
if (IPArray!=null) {
    // this is an IP address
	  for (var i=1;i<=4;i++) {
	    if (IPArray[i]>255) {
	        alert("Please make sure your email address is correct!")
		return false
	    }
    }
    return true
}

// Domain is symbolic name
var domainArray=domain.match(domainPat)
if (domainArray==null) {
	alert("Please make sure your email address is correct!")
    return false
}

var atomPat=new RegExp(atom,"g")
var domArr=domain.match(atomPat)
var len=domArr.length
if (domArr[domArr.length-1].length<2 || 
    domArr[domArr.length-1].length>3) {
      alert("Your email address must end in a three-letter domain, or two letter country.")
   return false
}

if (len<2) {
   var errStr="Please make sure your email address is correct!"
   alert(errStr)
   return false
}
 
return true;
}
//  End -->

<!-- VALIDATE LOGIN FORM
function validate_login(login)
{
  if (login.contact_email.value == "")
  {
    alert("You must enter your Email Address to access your website!");
    login.contact_email.focus();
    return (false);
  }
  if (login.password.value == "")
  {
    alert("Don't forget your password!");
    login.password.focus();
    return (false);
  }
  return (true);
}
//-->

<!-- VALIDATE LOGIN FORM
function validate(form2)
{
  if (form2.contact_email.value == "")
  {
    alert("You must enter your Email Address first!");
    form2.contact_email.focus();
    return (false);
  }

  if (form2.password.value.length == "")
  {
    alert("Don't forget to enter your password!");
    form2.password.focus();
    return (false);
  }

  return (true);
}
//-->

<!-- VALIDATE PASSWORD REMINDER FORM
function email_validate(form2)
{
  if (form2.email.value == "")
  {
    alert("You must enter your Email Address first!");
    form2.email.focus();
    return (false);
  }

  return (true);
}
//-->

<!-- VALIDATE FEEDBACK FORM
function validateupload(upload1)
{
if (form1.sender_name.value == "")
{
alert("Please enter at least your First Name.");
form1.sender_name.focus();
return (false);
}
if (form1.sender_email.value == "")
{
alert("You must enter your Email Address!");
form1.sender_email.focus();
return (false);
}
if (form1.comments.value == "")
{
alert("Don't forget to enter your comments!");
form1.comments.focus();
return (false);
}
return (true);
}
//-->

<!-- FORM BUTTON ONOVER
function pviiClassNew(obj, new_style) 
{
    obj.className = new_style;
}
//-->


<!-- Idea by:  Nic Wolfe (Nic@TimelapseProductions.com) -->
<!-- Web URL:  http://fineline.xs.mw -->

<!-- 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=0,location=0,statusbar=0,menubar=0,resizable=0,width=900,height=690,left = 290,top = 262');");
}
// End -->

<!-- Begin
function CalendarpopUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=750,height=500,left = 290,top = 262');");
}
// End -->



