// JavaScript Document

function subform(a){
	document.location.href = a;
}

function subform2(a,b,c){
	document.location.href = a + '?action=pri&val=' + b + '&id=' + c;
}

function openWin(URL,winname,ats){
		window.open(URL,winname,ats,"false");}
		
function closeWin(){
		window.close();}
		
function RefreshWin(){
		location.reload();}
		
function returnHost(url) 
{ 
  matches = url.match(/^(?:http:\/\/)([^\/]+)(?:\/.*)?$/i); 
   
  if (matches) return matches[1]; 
  return null; 
}

function GoURL(s) {
	var d = s.options[s.selectedIndex].value
	window.location.href = d
	s.selectedindex = 0}
	
function GoURLpop(s) {
	var d = s.options[s.selectedIndex].value;
	window.open(d,"newwin","width=600,height=400,scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes","false");
	s.selectedindex = 0}
