function trim(text){
	text = text.replace(/^\s+/, "");
	text = text.replace(/\s+$/, "");
	text = text.replace(/\s+/g, " ");
	return text;
}

function transportMe(strID){
	new Effect.ScrollTo(strID, {offset: -24});
}

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

function checkFeedbackForm(){		

	var objForm = document.getElementById("feedbackForm");
	
	if (trim(objForm.fld1.value).length < 2){
		alert("Please enter your full name.");
		objForm.fld1.value = trim(objForm.fld1.value);
		objForm.fld1.focus();
		return false;
	}

	if (trim(objForm.fld3.value).length < 2){
		alert("Please enter your contact number.");
		objForm.fld3.value = trim(objForm.fld3.value);
		objForm.fld3.focus();
		return false;
	}
	
	return true;
}
