// 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);
}

function postcode() {
	$(".jss_tel").hide()
	$(".jss_postcode").show()
	$(".marquee form .tel").hide()
	$(".marquee form .tel").val("");
	$(".marquee form .post").show()
	$(".marquee form .post").focus()
	return false;
}

function tel() {
	$(".jss_tel").show()
	$(".jss_postcode").hide()
	$(".marquee form .tel").show()
	$(".marquee form .post").val("");
	$(".marquee form .post").hide()
	$(".marquee form .tel").focus()
	return false;
}
