	function emailPage(email_link){
			location = email_link + '&isApp=true' + '&url=' + location;
	}
	
	function emailPage2(email_link){
		    var str = location + "";
			str = str.replace(/\?/g,"<");
			str = str.replace(/&/g,">");
			location = email_link  + '&url=' + str;
	}
	
	function printPage(){
			var s = '' + location;
			if(s.indexOf('?') == -1)
				s = location +"?print=true";
			else
				s = location +"&print=true";
			
			win = window.open(s,'print','resizable=yes,toolbar=yes,menubar=yes,scrollbars=yes,location=no,width=500,height=500');
			win.focus();
	}
	
	function printPage2(){
			var s = '' + location;
			if(s.indexOf('?') == -1)
				s = location +"?printstyle=true";
			else
				s = location +"&printstyle=true";
			
			win = window.open(s,'print','resizable=yes,toolbar=yes,menubar=yes,scrollbars=yes,location=no,width=600,height=500');
			win.focus();
	}
	
function changeHref(strClass,newHref) {
	for (i=0;i<document.getElementsByTagName('a').length; i++) {
		if (document.getElementsByTagName('a').item(i).className == strClass) {
			document.getElementsByTagName('a').item(i).href = newHref;
		}
	}
}