// JavaScript Document
/* contact.php

Author: Pixelcraze Design
Created: 03-08-08
Modified: 03-08-08

This document contains all generic functions for the fast.co.uk website

*/

function checkform ( form )
{

  if (form.name.value == "") {
    alert( "Please enter your name." );
    form.name.focus();
    return false ;
  }

  if (form.email.value == "") {
    alert( "Please enter your e-mail address" );
    form.email.focus();
    return false ;

  }

  if (form.enquiry.value == "") {
    alert( "Please enter your enquiry." );
    form.enquiry.focus();
    return false ;
  }
  return true ;
}

function callback()
{
	var callbackURL = "callback.php";
	var winLeft = (screen.width-375)/2;
	var winTop = (screen.height-(480+110))/2;
	
	window.open(callbackURL, "callbackPage", "width=375,height=490,resizable=yes,scrollbars=yes,top=" + winTop + ",left=" + winLeft);
}