All pastes #387842 Raw Edit

Mine

public javascript v1 · immutable
·published 2007-03-09 18:07 UTC
rendered paste body
	sendquote = document.forms['contact'].elements['sendcontact'];	sendquote.onclick = function() {		var txtName = document.forms['getquote'].elements['txtName'].value;		var txtEmail = document.forms['getquote'].elements['txtEmail'].value;		var txtComments = document.forms['getquote'].elements['txtComments'].value;		var radContactMethod = document.forms['getquote'].elements['radContactMethod'].value;		var txtPhoneNumber = document.forms['getquote'].elements['txtPhoneNumber'].value;		var ckbSNProg = document.forms['getquote'].elements['ckbServiceNeededProg'].value;		var ckbSNAppCust = document.forms['getquote'].elements['ckbServiceNeededAppCust'].value;		var ckbSNEComm = document.forms['getquote'].elements['ckbSNEComm'].value;		var ckbSNLAMPSetup = document.forms['getquote'].elements['ckbSNLAMPSetup'].value;		var email = document.forms['getquote'].elements['email'].vaue;				if(!txtName) {			alert('You must enter a name!');		}		switch(txtContactMethod) {			case 1:				if(!txtEmail) {					alert("Your request contact method requires a valid E-Mail Address.");				}			break;			case 2:				if(!txtPhoneNumber) {					alert("Your requested contact method requires a phone number with area-code!");				}			break;		}		if(!txtComments) {			alert("If no Project Description is provided, I can not give you a quote! If you prefer to speak directly via E-Mail or Phone, just put 'Contact me' in the Project Description field.");		}				awQuote(txtName,txtEmail,radContactMethod,txtPhoneNumber,txtComments,ckbSNProg,ckbSNAppCust,ckbSNEComm,ckbSNLAMPSetup,email);	}