// JavaScript Document

function fn_AssignRegarding(vPDValue){
	// Assigns the value of the pull down when changed
	if(vPDValue == 'Service'){
		alert("Technical support inquiries should be directed through our Support forums at http://forums.techsol.org for all consumer & web products, "+
			  "or by telephone to +1-480-451-7440 (press Option 2 for Tech Support) for all Business related products covered by a support agreement.  "+
			  "Please be sure you are requesting support for a Tech Solutions USA, Inc. product or service.  There are many companies called 'Tech Solutions'"+
			  "that have various products that are not ours and we cannot provide assistance to them.  This includes Chiropractic software and hardware products "+
			  "as often sold by Office Max, Staples, etc.   They are NOT our products.  Please verify that you are requesting support for a product that we sell.");
	}
	document.f_contact.vt_RegardingPD.value = vPDValue;	
	// Now forward the user to the support forums
	top.location.href = 'http://forums.techsolusa.com';
}

function fn_Validate(){
	// Validates form entry
	if(document.f_contact.vt_Name.value != ''){
		if(document.f_contact.vt_Email.value != ''){
			if(document.f_contact.vt_Phone.value != ''){
				if(document.f_contact.vt_RegardingPD.value != ''){
					if(document.f_contact.Body.value != ''){
						// All seems ok at this point...
						document.f_contact.action = '/tsn_contactprocess.php';
						document.f_contact.submit();
					}else{
						alert("Please enter your message");
					}
				}else{
					alert("Please choose what this is regarding");
				}
			}else{
				alert("Please enter your phone number");
			}
		}else{
			alert("Please enter your email address");
		}
	}else{
		alert("Please enter your name");
	}
}
