function loginstatic() {
var temp = window.location.host.split(".");
var domain0 = temp[0];
var domain1 = temp[1];  
var domain2 = temp[2]; 
if (domain0=="www"){
var domain = window.location.host              
var https = "https://whr2."
var whr = "/whr/index2.jsp"
var xyz = https+domain1+"."+domain2+whr
window.location.href=xyz
} else if(domain0!="www") {
var domain = window.location.host              
var https = "https://whr2."
var whr = "/whr/index2.jsp"
var xyz = https+domain0+"."+domain1+whr
window.location.href=xyz
}
}


function registerstatic() {
var temp = window.location.host.split(".");
var domain0 = temp[0];
var domain1 = temp[1];  
var domain2 = temp[2]; 
if (domain0=="www"){
var domain = window.location.host              
var https = "https://whr2."
var whr = "/whr/register.do"
var xyz = https+domain1+"."+domain2+whr
window.location.href=xyz
} else if(domain0!="www") {
var domain = window.location.host              
var https = "https://whr2."
var whr = "/whr/register.do"
var xyz = https+domain0+"."+domain1+whr
window.location.href=xyz
}
}