// Trim leading and trailing white space
function trimString(str) {
  str = str.replace( /^\s+/g, "" );
  return str.replace( /\s+$/g, "" );
}
// Display the current page link in left nav with distinct color
// when link node value is a substring of the page title tag
function showURhere(strTitle) { //alert('reached here 1');
	strTitle = strTitle.replace(/\&/g, "&amp;");
	var lev2 = document.getElementById('lev2links');
	for(i=0; i<lev2.childNodes.length; i++) {
		if (lev2.childNodes[i].nodeType == 1){
			var linktext = trimString(lev2.childNodes[i].firstChild.innerHTML);
			if (strTitle.indexOf(linktext)!= -1){
				lev2.childNodes[i].className="URhere";
			} 
		}
	}
}
//process form to customize registration page based on request
function getme(somthin) {
	document.forms.getcontent.premcontent.value = somthin;
	//alert(document.forms.getcontent.premcontent.value);
	document.forms.getcontent.submit();
}

function AddBookmark(url,title){

if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		return true; }
		
		
}
