function swaptdcolor(id, yesno) {
	if (yesno){
		id.style.color = '#000000'
		id.style.backgroundColor = '#FFCC00'
		id.style.cursor='pointer'		
	}else{
		id.style.color = '#FFFFFF'
		id.style.backgroundColor = '#003366'
	}
}
function swapsub(id, yesno) {
	if (yesno){
		id.style.color = '#000000'
		id.style.backgroundColor = '#FFCC00'
		id.style.cursor='pointer'		
	}else{
		id.style.color = '#FFFFFF'
		id.style.backgroundColor = '#336699'
	}
}

function trim(value) {
   var temp = value;
   var obj = /^(\s*)([\W\w]*)(\b\s*$)/;
   if (obj.test(temp)) { temp = temp.replace(obj, '$2'); }
   var obj = / +/g;
   temp = temp.replace(obj, " ");
   if (temp == " ") { temp = ""; }
   return temp;
}

function ValidatePhoneFax(frmObj) {
	var regNotPhone=/[^- +\/(0-9)]/gi;
	var tmpStr=frmObj.value;
	if(tmpStr.match(regNotPhone)) {
		frmObj.value=tmpStr.replace(regNotPhone,"");
	}
}