// JavaScript Document
<!--

/***********************************************
* Rollover background-color button Script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Specify optional button target: "_new" for new window, or name of FRAME target (ie "myframe")
var buttontarget=""

function change(e, color){
var el=window.event? event.srcElement: e.target
if (el.tagName=="INPUT"&&el.type=="button")
el.style.backgroundColor=color
}

function jumpto2(url){
if (buttontarget=="")
window.location=url
else if (buttontarget=="_new")
window.open(url)
else
parent[buttontarget].location=url
}

function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = findObj(selName); if (selObj) jumpMenu(targ,selObj,restore);
}
//pop-up script
<!--Pop-up Window Control-->
function OpenBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//close window
<!--
function closeBrWindow() {
window.close(); 
}

//test form code only works with outlook - not the best for our purpose here
function DoRedirect(myForm) { 
// put your email address in here 
myForm.action="mailto:victor@cox.net"; 
// put the redirect url in here absolute or relative urls can be used 
// example: thankyou.htm 
location.href="Thankyou.html"; 
return true; 
} 
//form validation
function Validate(form)
{
	var msg = "You must enter both name and email values ...";
	var name = document.forms[0].realname.value;
	var email = document.forms[0].email.value;

	
	// check for any space characters that may be input
  	
  	if (name == "" || name == null || email == "" || email == null)
  	{
  		alert (msg);
  		return false;
  	}
}
//-->
