function verifyph() {
var txt = "";

  for(var i = 0; i < document.frmpic.category_id.length; i++) {
	if(document.frmpic.category_id[i].selected) {
		if(document.frmpic.category_id[i].value=="") {
		  txt = txt + "\n * Category";
		}
	}
  }
  
	if (txt) {
		alert ("The folowing fields are required:\n" + txt);
		return false;
	}	
}

function verifyorder() {
var txt = "";

	if (document.frmorder.name.value=="") {
		txt = txt + "\n * Name";
	} 
	if (document.frmorder.house.value=="") {
		txt = txt + "\n * House Number";
	} 
	if (document.frmorder.address1.value=="") {
		txt = txt + "\n * Address";
	} 
	if (document.frmorder.city.value=="") {
		txt = txt + "\n * City";
	} 
	if (document.frmorder.postcode.value=="") {
		txt = txt + "\n * Post Code";
	} 
	if (document.frmorder.clemail.value=="") {
		txt = txt + "\n * Email";
	} 
	if (document.frmorder.telephone.value=="") {
		txt = txt + "\n * Telephone";
	} 
	
	
	if (txt) {
		alert ("The folowing fields are required:\n" + txt);
		return false;
	}	
}

function verifylogin() {
var txt = "";

	if (document.frmlog.userlogin.value=="") {
		txt = txt + "\n * Username";
	} 
	if (document.frmlog.passlogin.value=="") {
		txt = txt + "\n * Password";
	} 

	
	if (txt) {
		alert ("The folowing fields are required:\n" + txt);
		return false;
	}	
}