// JavaScript Document


function openWindow(url)
{  popupWin = window.open(url, 'openWin', "width=400, height=250, scrollbars=yes"); } 

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
 
function popup(src) {
  win = window.open(src,"","top=20,left=20,height=300,width=450,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes")
}


function validate_form ( )
{
	valid = true;

       if ( document.contact_form.subject.selectedIndex == 0 )
        {
                alert ( "Please select reason for contacting us." );
                valid = false;
        }
 if ( document.contact_form.Name.value == "" )
        {
                alert ( "Please fill in the 'Your Name' box." );
                valid = false;
        }
 if ( document.contact_form.Email.value == "" )
        {
                alert ( "Please fill in the 'Email' box." );
                valid = false;
        }
		 if ( document.contact_form.Phone.value == "" )
        {
                alert ( "Please fill in the 'Phone' box." );
                valid = false;
        }
				 if ( document.contact_form.text.value == "" )
        {
                alert ( "Please fill in the 'Message' box." );
                valid = false;
        }
        
      
        return valid;
}

