// JavaScript Document
function call_free(url)
{
	day = new Date();
	id = day.getTime();
	var h=300;
	var w=420;
	var l=(screen.width-w)/2;
	var t=(screen.height-h)/2;
	eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+ w +",height="+ h + ",left = "+l+",top = "+t+"');");
}

function  callfree_Validate(form) {
  var e = 0;  

  if(form.name.value.length<4) {
  e=1;
  alert("Enter your name! (4 characters min.)"); 
  form.name.focus();
  return false;}

  if(form.phone.value=="") {
  e=1;
  alert("Enter your phone number!"); 
  form.phone.focus();
  return false;}

if(e==0){  return true;}
}

function  contact_Validate(form) {
  var e = 0;  

  if(form.name.value.length<4) {
  e=1;
  alert("Enter your name! (4 characters min.)"); 
  form.name.focus();
  return false;}

  if(form.address.value=="") {
  e=1;
  alert("Enter your address!"); 
  form.address.focus();
  return false;}

  if(form.company.value=="") {
  e=1;
  alert("Enter your company name!"); 
  form.company.focus();
  return false;}

  if(form.comments.value=="") {
  e=1;
  alert("Enter your comments!"); 
  form.comments.focus();
  return false;}


  if(form.contact_number.value=="") {
  e=1;
  alert("Enter your contact number!"); 
  form.contact_number.focus();
  return false;}

  if(form.contact_email.value=="") {
  e=1;
  alert("Enter your contact email!"); 
  form.contact_email.focus();
  return false;}

  if(form.contact_fax.value=="") {
  e=1;
  alert("Enter your contact fax!"); 
  form.contact_fax.focus();
  return false;}

if(e==0){  return true;}
}
