function redirectTo(sPage){
	window.location=sPage;
}


function browser(string){
	var detect = navigator.userAgent.toLowerCase();
	place = detect.indexOf(string) + 1;
	var thestring = string;
	return place;
}

function resizeContent(){
	var oInnerHeight;
	if (document.body) {
		oInnerHeight=document.body.offsetHeight-4;
	}
	else if (window) {
		oInnerHeight=window.innerHeight;
	}
	if (document.getElementById) {
		document.getElementById("main_table").style.height=oInnerHeight;
		document.getElementById("content_table").style.height=oInnerHeight;
	}
	else if (document.all) {
		document.all("content_table").style.height=oInnerHeight;
		document.all("main_table").style.height=oInnerHeight;
	}
}

function popupPic(sPicURL) { 
	window.open("/popup.html?"+sPicURL, "", "resizable=1,height=200,width=200");
}

function redirectpage(dest){
	if (window.location.replace)
		window.location.replace(dest)
	else
		window.location=dest
}
