//create a host object for links going from https to http
var host = new Object();
host = document.location.hostname;
var httphost = "http://"+host; 

function PrivTermsPop(theUrl, winName)
{
	window.open(theUrl, winName, "width=566,scrollbars,resizable,top=0,status,scrollbars,left=0");
}

function termsApply()
{
	window.open('http://' + host + '/web/At_home/Popup/Discount_Popup','discountterms_form','width=567,height=200,status,scrollbars,top=0,left=0');
}

// gets website prefixed by http or https use for secure pages
function GetHTTPPrefix()
{
	var prefix = "";
	
	if (host != "localhost" && host != "ohndb05" && host != "kfkws02d" && host !="kfnss29" )
		prefix = "https://"+host;
	else
		prefix = "http://"+host;
		
	return prefix;	  
}
// gets website prefixed by http or https use for non-secure pages
function GetHTTPSite()
{
	return "http://"+host;
		
	
}
