// JavaScript Document

function validate(field)
{
 if( document.getElementById(field).value != '' )
  return true;
 return false;
}

function validate_phone(field)
{
// use regex here to match the phone number ;)	
	
}

function createXMLHttpRequest()
{
  var xmlHttp = false;  
  if( window.ActiveXObject ) // if IE
  { 
   xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
  }
  else if( window.XMLHttpRequest )
  {
   xmlHttp = new XMLHttpRequest();
  }
  
  return xmlHttp;
}

function job_details(num) 
{
 var url = "job_details.php?q=" + num;
 
 window.open (url,"mywindow","menubar=1,resizable=1,width=500,height=350, top=120, left=150");
}

function job_details_admin(num) 
{
 var url = "job_details.php?q=" + num;
 
 window.open (url,"mywindow","menubar=1,resizable=1,width=500,height=450, top=120, left=150");
}

