function validateform()
{
// Need to find out how to pull the values for "product1[]"
// This is inserted just in case it needs to validate the data
	var docform = document.sponsorship_form;
    var lucount = 0, tmp

    for (var it=0;it<docform.length;it++) {
        tmp = docform[it].id.substr(0,2);
        if ((tmp=="l_" || tmp=="u_")&&docform[it].checked) {lucount++}
    }    
    if (lucount==0){
        alert("Please select an item");
        docform.l_presenting.focus();
        return (false);
    }
    if (docform.c_name.value.length==0) 
	{
		alert("Please fill in the company name");
		docform.c_name.focus();
		return (false);
	}
    if (docform.c_rep.value.length==0) 
	{
		alert("Please fill in the company representative.");
		docform.c_rep.focus();
		return (false);
	}   
    if (docform.c_addr.value.length==0) 
	{
		alert("Please fill in the company address.");
		docform.c_addr.focus();
		return (false);
	}      
    if (docform.c_city.value.length==0) 
	{
		alert("Please fill in the city.");
		docform.c_city.focus();
		return (false);
	} 
    if (docform.c_state.value.length==0) 
	{
		alert("Please fill in the state.");
		docform.c_state.focus();
		return (false);
	}     
	if (docform.c_state.value.search(/\d/)!=-1) 
	{
		alert("Please enter a valid state.");
		docform.c_state.focus();
		return (false);
	}
	if (docform.c_state.value.length!=2) 
	{
		alert("Please enter a valid state.");
		docform.c_state.focus();
		return (false);
	}    
	if (docform.c_zip.value.search(/\d{5}/)==-1)
	{
		alert("Please enter a 5-digit zip code.");
		docform.c_zip.focus();
		return (false);
	}
	if (docform.c_phone.value.search(/\d{10}/)==-1)
	{
		alert("Please enter a 10-digit phone number.");
		docform.c_phone.focus();
		return (false);
	}     
	if (docform.c_email.value.search(/\w*\w@\w[\w-_]+\.\w{2,4}/)==-1 && docform.c_email.value.length!=0)
	{
		alert("Please enter a valid email.");
		docform.c_email.focus();
		return (false);
	}
    docform.submit.disabled = true;
	return (true);
}

addLoadEvent(function(){document.sponsorship_form.submit.disabled = false;})