if (document.images)
{
  pic1= new Image(17,4); 
  pic1.src="/obs/images/button_bg_right_bottom-ov.gif"; 
  
  pic2= new Image(180,10); 
  pic2.src="/obs/images/button_bg_bottom-ov.gif"; 
  
  pic3= new Image(17,150); 
  pic3.src="/obs/images/button_bg_right_top-ov.gif"; 
  
  pic4= new Image(180,150); 
  pic4.src="/obs/images/button_bg_top-ov.gif"; 
  
}

// Only script specific to this form goes here.
// General-purpose routines are in a separate file.
  function validateOnSubmit() {
	 
    var elem;
    var errs=0;
	
	
    // execute all element validations in reverse order, so focus gets
    // set to the first one in error.
	
   if (!validateName  (document.forms.contactform.firstname, 'fb_firstname', true)) {errs += 1; }
   if (!validateName  (document.forms.contactform.lastname, 'fb_lastname', true)) {errs += 1;}
   if (!validateEmail  (document.forms.contactform.emailaddress, 'fb_emailaddress', true)) {errs += 1;} 
   if (!validateName  (document.forms.contactform.city,  'fb_city', true)) {errs += 1;}
   
  if (!validateSelect  (document.forms.contactform.stateprovince.value,  'fb_stateprovince', true)) {errs += 1;}

    if (errs>=1) { alert('All required fields must be completed before submitting.');}
	
    return (errs==0); // returns boolean depending on if there are errors
  };
  
  
  function openPopupWindow (thisHref) {

window.open(thisHref,'Buildzyn','width=550,height=550,location=0,status=0,scrollbars=1,resize=1,directories=0,toobars=0')

            

}

