<!--

function validAdd (frm)
{
	if (frm.email.value == "" || 
		frm.email.value.indexOf('@',1) == -1 ||
		frm.email.value.indexOf('.',1) == -1 )
	{
		alert ("Email has wrong format");
		frm.email.focus ();
		return false;
	}
	return true;
}

function checkinputs(){
		j=0;
		k=0;
		inputs=document.getElementsByTagName("input");
		inputlen=inputs.length;
		for (i=0;i<inputlen;i++){
			itype=inputs[i].type;
			if (itype=="text"){
				icheck=inputs[i].getAttribute("required");
				if (icheck=="y"){
					ival=inputs[i].value
					if (ival==""){
						//inputs[i].className="reqhi";
						inputs[i].style.backgroundColor="#FAFA62";
						//inputs[i].style.borderColor="#FAFA62";
						//inputs[i].parentNode.innerHTML=inputs[i].outerHTML;	
						//inputs[i].parentNode.innerHTML+=" ***";	
						j+=1;				
					}else{
						//inputs[i].className="req";
                        inputs[i].style.borderColor="white"; 
						inputs[i].style.backgroundColor="#FFFFA0";
						//inputs[i].parentNode.innerHTML=inputs[i].outerHTML;
					}
				}
			} else {
				if (itype=="checkbox"){	
					if (inputs[i].checked==true){
						k=0;
					}else{
						k=1;
					}
					
				}
			}
		}
		
		
		
		
		if (j>0){
			alert("Please make sure you fill up all the required fields which are highlighted")
			return false;
		}else{
			if (k>0){
				alert("You must agree to the terms specified in order to proceed");
				document.getElementById("agreeterms").focus();
				return false;
			}else{
			//alert("All field entries are valid...Form info will be submitted");
				return true;
			}
		}
		
	}
	


//-->