/*
[##########*##########*##########*##########*##########]
####												####
####  Custom API developed by						####
####  												####
####  e]O™											####
####   ~  											####
####  												####
####  eYe Openers design							####
####  http://eYeOpenersdesign.com					####
####  contact *web.development* at the above domain	####
####  © Wm Leslie Howard MMX - all rights reserved	####
####  												####
[##########*##########*##########*##########*##########]
*/


/*
##########( SELECT ADJACENT RADIO BUTTON IN SEARCH [All Pages.] ]##########
*/

function hit(searchID){
if(searchID=="clp"){
	document.getElementById('clpRadio').checked=true}
	
else if(searchID=="hb"){
	document.getElementById('hbRadio').checked=true}

else if(searchID=="scu"){
	document.getElementById('scuRadio').checked=true}}


/*
##########( LIMIT CHARS IN TEXTAREA ]##########
Used in Contact Us form, -Wm Sat, 28.Aug.2010 | 05:30:32PM
*/
function limitText(limitField, limitCount, limitNum) {
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum)} 

	else {
		limitCount.value = limitNum - limitField.value.length}}


/*
##########( CONTACT US ALERT: "Like to be on our list?" ]##########
*/
//If checked Yes to "On our list?" and Yes to "Would you like to be?"
function valCheckbox(box){
	if(box.checked==true){
		document.all.hiddenInput2.value='Yes'}
	else{
		document.all.hiddenInput2.value='No'}

	if(document.all.radio_onMail.checked==true){
		if(confirm('You have clicked that you are on our mailing list.\r\r\tOK:I am not on the list and want to be added.\r\r\tCancel:Do not add me to the list at this time.')){
			document.all.radio_notOnMail.checked=true;
			document.all.hiddenInput1.value='No'
			document.all.hiddenInput2.value='Yes'}
	else{
		box.checked=false;
		document.all.hiddenInput2.value='No'}}}


function freshPage(docURL){
	location.href=docURL}

/*
##########( CONTACT US ALERT: "How did you hear about us?" ]##########
//First line commented which makes the whole function moot. No?
function val(radioSelected){
//	if(document.all.radioOther.checked==true && document.all.otherText.value==''){
	document.all.hiddenInput3.value=radioSelected;
	alert('radio Selected= '+radioSelected+'. \n\nHow did you hear about us?\n\n\tPlease let us know the source for "Other."\n\nhidden input 3 = '+document.all.hiddenInput3.value);
	document.all.otherText.focus();
	return false}
*/


/*
[##########*##########*##########*##########*##########]
####												####
####  Custom API developed by						####
####  												####
####  e]O™											####
####   ~  											####
####  												####
####  eYe Openers design							####
####  http://eYeOpenersdesign.com					####
####  contact *web.development* at the above domain	####
####  © Wm Leslie Howard MMX - all rights reserved	####
####  												####
[##########*##########*##########*##########*##########]
*/


