function verifyform(t){
	if(t=="step1")
	{
		t=document.step1;
		if(t.txt_name.value==""){
		 alert("Please fill the name");
		 return false;
		}
		if(t.txt_company.value==""){
		 alert("Please fill the company");
		 return false;
		}
		if(t.txt_phone.value==""){
		 alert("Please fill the phone");
		 return false;
		}
		if(t.txt_email.value==""){
		 alert("Please fill the email");
		 return false;
		}
		/*if(t.txt_label_size.value==""){
		 alert("Please fill the width");
		 return false;
		}
		if(t.txt_label_size2.value==""){
		 alert("Please fill the length");
		 return false;
		}
		unchecked=0;
		for(i=0;i<t.rad_shape.length;i++){
			if(!t.rad_shape[i].checked){
				unchecked++;
			}
		}
		if(unchecked==t.rad_shape.length){
			alert("Please select the shape");
			return false;
		}
		unchecked=0;
		for(i=0;i<t.rad_corner.length;i++){
			if(!t.rad_corner[i].checked){
				unchecked++;
			}
		}
		if(unchecked==t.rad_corner.length){
		 alert("Please select the shape");
		 return false;
		}*/
	t.submit();
	}
	if(t=="step2"){
		t.submit();
	}
	if(t=="step3"){
		t.submit();
	}
	
	/*if(t=="step2")
	{
		t=document.step2;
		unchecked=0;
		for(i=0;i<t.rad_choose.length;i++){
			if(!t.rad_choose[i].checked){
				unchecked++;
			}else{
				thechoose=t.rad_choose[i].value;
			}
		}
		if(unchecked==t.rad_choose.length){
			alert("Please select the sheets, rolls or folded");
			return false;
		}
		if(thechoose=="Sheets"){
			unchecked=0;
			for(i=0;i<t.rad_sheet.length;i++){
				if(!t.rad_sheet[i].checked){
					unchecked++;
				}else if(t.rad_sheet[i].value=="Specify" && (t.txt_sheet_size.value=="" || t.txt_per_sheet.value=="")){
					alert("Please specify the sheets size");
					return false;
				}
			}
			if(unchecked==t.rad_sheet.length){
				alert("Please select the sheets size");
				return false;
			}
		}
		if(thechoose=="Rolls"){
			unchecked=0;
			for(i=0;i<t.rad_rolls.length;i++){
				if(!t.rad_rolls[i].checked){
					unchecked++;
				}else if(t.rad_rolls[i].value=="Other" && t.txt_rolls.value==""){
					alert("Please specify the roll quantity");
					return false;
				}
			}
			if(unchecked==t.rad_rolls.length){
				alert("Please select the roll quantity");
				return false;
			}
			unchecked=0;
			for(i=0;i<t.rad_across.length;i++){
				if(!t.rad_across[i].checked){
					unchecked++;
				}else if(t.rad_across[i].value=="Other" && t.txt_across.value==""){
					alert("Please specify the roll across");
					return false;
				}
			}
			if(unchecked==t.rad_across.length){
				alert("Please select the roll across");
				return false;
			}
			unchecked=0;
			for(i=0;i<t.rad_core.length;i++){
				if(!t.rad_core[i].checked){
					unchecked++;
				}else if(t.rad_core[i].value=="Other" && t.txt_core.value==""){
					alert("Please specify the roll across");
					return false;
				}
			}
			if(unchecked==t.rad_core.length){
				alert("Please select the roll across");
				return false;
			}
		}
		unchecked=0;
		for(i=0;i<t.rad_surface.length;i++){
			if(!t.rad_surface[i].checked){
				unchecked++;
			}else if(t.rad_surface[i].value=="Other" && t.txt_medium.value==""){
				alert("Please specify the surface");
				return false;
			}
		}
		if(unchecked==t.rad_surface.length){
			alert("Please select the surface");
			return false;
		}
		unchecked=0;
		for(i=0;i<t.rad_how_label.length;i++){
			if(!t.rad_how_label[i].checked){
				unchecked++;
			}
		}
		if(unchecked==t.rad_how_label.length){
			alert("Please select the applying type");
			return false;
		}
		unchecked=0;
		for(i=0;i<t.rad_applied.length;i++){
			if(!t.rad_applied[i].checked){
				unchecked++;
			}else if(t.rad_applied[i].value=="Both" && t.txt_applied.value==""){
				alert("Please specify the usage location");
				return false;
			}
		}
		if(unchecked==t.rad_applied.length){
			alert("Please select the usage location");
			return false;
		}
		if((!t.rad_exposed_uv.checked && !t.rad_exposed_w.checked && !t.rad_exposed_a.checked && !t.rad_exposed_g.checked && !t.rad_exposed_h.checked) || (t.rad_exposed_o.checked && t.txt_exposed.value=="")){
			alert("Please specify the exposure type");
			return false;
		}
	t.submit();
	}
	if(t=="step3")
	{
		t=document.step3;
		unchecked=0;
		for(i=0;i<t.rad_material.length;i++){
			if(!t.rad_material[i].checked){
				unchecked++;
			}else if(t.rad_material[i].value=="Other" && t.txt_material22.value==""){
				alert("Please specify the material");
				return false;
			}
		}
		if(unchecked==t.rad_material.length){
			alert("Please select the material");
			return false;
		}
		unchecked=0;
		for(i=0;i<t.rad_material2.length;i++){
			if(!t.rad_material2[i].checked){
				unchecked++;
			}else if(t.rad_material2[i].value=="Other" && t.txt_material2.value==""){
				alert("Please specify the material");
				return false;
			}
		}
		if(unchecked==t.rad_material2.length){
			alert("Please select the material");
			return false;
		}
		unchecked=0;
			if(!t.rad_minimum.checked && (t.how_quote.value=="" || t.how_quote2.value=="" || t.how_quote3.value=="" || t.how_quote4.value=="")){
				alert("Please select or specify the number of quotes");
				return false;
			}
		
	t.submit();
	}*/
}
