function openWindow(url,spawnWidth,spawnHeight,WinTitle) {
	var spawnLeft = (screen.width / 2) - (spawnWidth / 2);
	var spawnTop = 22;
	var spawnWidthwin = spawnWidth + 20;
	var spawnHeightwin = spawnHeight + 20;
    tallWin = window.open(url,'AMSF','toolbar=0,location=0,directories=0,status=no,menubar=0,scrollbars=1,resizable=1,width='+spawnWidthwin+',height='+spawnHeightwin+',left='+spawnLeft+',top='+spawnTop+',fullscreen=no');
    if (navigator.appName == 'Netscape') {
	    tallWin.focus();
    };
	tallWin.document.open();
	tallWin.document.write("<html><head><title>Sunrise At Escala ");
	tallWin.document.write(WinTitle);
	tallWin.document.write('</title></head><body background="images/new_win.jpg"><a href="javascript:self.close();"><img src="');
	tallWin.document.write(url);
	tallWin.document.write('" alt="" border="0" width="');
	tallWin.document.write(spawnWidth);
	tallWin.document.write('" height="');
	tallWin.document.write(spawnHeight);
	tallWin.document.write('" /></a></body></html>');
	tallWin.document.close();
};

// Validate form fields.
function validate_form ( )
	{
		valid = true;

      	  if ( document.contact_form.contact_name.value == "" )
        	{
                alert ( "Please fill in the 'Name' box." );
                valid = false;
        	}
          if ( document.contact_form.address.value == "" )
        	{
                alert ( "Please fill in the 'Address' box." );
                valid = false;
        	}
          if ( document.contact_form.city.value == "" )
        	{
                alert ( "Please fill in the 'City' box." );
                valid = false;
        	}
          if ( document.contact_form.state.value == "" )
        	{
                alert ( "Please fill in the 'State' box." );
                valid = false;
        	}
          if ( document.contact_form.zip.value == "" )
        	{
                alert ( "Please fill in the 'Zip Code' box." );
                valid = false;
        	}
          if ( document.contact_form.contact_email.value == "" )
        	{
                alert ( "Please fill in the 'Email' box." );
                valid = false;
        	}
		  if ( document.contact_form.contact_phone.value == "" )
        	{
                alert ( "Please fill in the 'Phone Number' box." );
                valid = false;
        	}

       	 return valid;
	}
