function popup(FileName, Width, Height) {
var popup = window.open(FileName,"","scrollbars=yes,menubar=no,height=" + Height + ",width=" + Width + ",resizable=yes,toolbar=no,location=no,status=no");
}

function load() {
	var url;
	var oBase;
	oBase = document.getElementsByTagName('base');
	var lBase = 0
	lBase = oBase.length;
	//This is doe because of error with print link in Ultraseek, 
	//as a result we use the <base> tag with the base url that is provided by Ultraseek
	if (lBase == 0) {
		var load = window.open("?p=1","","scrollbars=yes,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no");
		}
	else{
		var load = window.open(oBase[0].href + "?p=1","","scrollbars=yes,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no");
		}
}

function RadioRedirect(RedirectPage) {
	//this loops through the whole form because javascript does not like how .net names objects (colons)
	for (i=0; i<document.mainform.length; i++) {
		if (document.mainform[i].name == RedirectPage){
			if (document.mainform[i].checked) {
				document.location.href = document.mainform[i].value;
			}
		}
	}
}

