<!--
function sendLogin(c){
   if (document.c.username.value.length < 3) {
      alert('Input user name.')
	  c.username.focus()
      return false;
   } 
   if (document.c.password.value.length <6) {
      alert('Input Password.\r\Password must be at least 6 characters.')
	  c.password.focus()
      return false;
   } 
   return true;
};
function sendOffc(cc){
   if (document.cc.name.value.length < 3) {
      alert('Input Your Name.')
	  cc.name.focus()
      return false;
   } 
   validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
	strEmail = document.cc.email.value;
	if (strEmail.search(validRegExp) == -1){
	alert("A valid e-mail address is required.\r\Please check you have entered your details correctly.");
	cc.email.select();
	cc.email.focus();
	return false;
	}
   return true;
};
function sendContact(con){
   if (document.con.fname.value.length < 3) {
      alert('Input Your Name.')
	  document.con.fname.focus()
      return false;
   } 
   validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
	strEmail = document.con.email.value;
	if (strEmail.search(validRegExp) == -1){
	alert("A valid e-mail address is required.\r\Please check you have entered your details correctly.");
	document.con.email.select();
	document.con.email.focus();
	return false;
	}
	if (document.con.subject.value.length < 3) {
      alert('Input Message Subject.')
	  con.subject.focus()
      return false;
   }
	if (document.con.phone.value.length < 3) {
      alert('Input Your Phone Number.')
	  con.phone.focus()
      return false;
   }
   if (document.con.address.value.length < 3) {
      alert('Input Your address.')
	  con.address.focus()
      return false;
   }
   if (document.con.city.value.length < 3) {
      alert('Input Your City.')
	  con.city.focus()
      return false;
   }
   return true;
};
function sendReg(reg){
	if (document.reg.username.value.length < 4) {
      alert('Input User Name.\r\r\User Name must be at least 4 characters.')
	  reg.username.focus()
      return false;
   } 
   if (document.reg.password.value.length < 3) {
      alert('Input password.\r\r\Password must be at least 6 characters.')
	  reg.password.focus()
      return false;
   } 
   if (document.reg.password.value != document.reg.password_c.value) {
      alert('Passwords did not match.\r\r\Check back & correct..')
	  reg.password_c.focus();
	  reg.password_c.select();
      return false;
   } 
   if (document.reg.fname.value.length < 3) {
      alert('Input First Name.')
	  reg.fname.focus()
      return false;
   } 
   if (document.reg.lname.value.length < 3) {
      alert('Input Last Name.')
	  reg.lname.focus()
      return false;
   } 
   validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
	strEmail = document.reg.email.value;
	if (strEmail.search(validRegExp) == -1){
	alert("A valid e-mail address is required.\r\Please check you have entered your details correctly.");
	reg.email.select();
	reg.email.focus();
	return false;
	}
	if (document.reg.phone.value.length < 3) {
      alert('Input Your Phone Number.')
	  reg.phone.focus()
      return false;
   }
   if (document.reg.address.value.length < 3) {
      alert('Input Your address.')
	  reg.address.focus()
      return false;
   }
   if (document.reg.city.value.length < 3) {
      alert('Input Your City.')
	  reg.city.focus()
      return false;
   }
   return true;
};

function sendProfile(pro){
   if (document.pro.password.value.length < 3) {
      alert('Input password.\r\r\Password must be at least 6 characters.')
	  pro.password.focus()
      return false;
   } 
   if (document.pro.fname.value.length < 3) {
      alert('Input First Name.')
	  pro.fname.focus()
      return false;
   } 
   if (document.pro.lname.value.length < 3) {
      alert('Input Last Name.')
	  pro.lname.focus()
      return false;
   } 
   validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
	strEmail = document.pro.email.value;
	if (strEmail.search(validRegExp) == -1){
	alert("A valid e-mail address is required.\r\Please check you have entered your details correctly.");
	reg.pro.select();
	reg.pro.focus();
	return false;
	}
	if (document.pro.phone.value.length < 3) {
      alert('Input Your Phone Number.')
	  pro.phone.focus()
      return false;
   }
   if (document.pro.address.value.length < 3) {
      alert('Input Your address.')
	  pro.address.focus()
      return false;
   }
   if (document.pro.city.value.length < 3) {
      alert('Input Your City.')
	  pro.city.focus()
      return false;
   }
   return true;
};
function ow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

-->
