function ChangeWindow(URL)
{
	location.href = URL
}

function  SendMail(n,d){
	document.location.href='mailto:' + n + '@' + d;
	//window.open("/contact/email.aspx?id='" + n + "',null,\"width= 250\");
}
function PrintMail(n,d,m,s){    
    m = n + '@' + d;    
	document.write("<a id='" + s + "' href=\"JavaScript:xSendMail('" + n + "','" + d + "'); \" onMouseOver=\"self.status='" + m + "'; return true;\" onMouseOut=\"self.status=''; return true;\">" + m + "</a>");
	return true;
}	

//opens an email disclaimer window, making them agree before sending the email
//if there is no email input, it opens the contact us disclaimer, and sends them to contact.aspx if they agree
function xSendMail(name, domain){    
	var BaseOptions;
	//change the height depending on email, or contact disclaimer
	if(name != "" && domain != ""){
	BaseOptions = 'width=400,height=312,status=no,scrollbars=yes,resizeable=yes,dependent=yes,alwaysRaised=yes';
	}
	else{
	BaseOptions = 'width=400,height=445,status=no,scrollbars=yes,resizeable=yes,dependent=yes,alwaysRaised=yes';
	}
    var win = window.open('emaildisclaimer.asp?n=' + name + '&d=' + domain,'_new', BaseOptions);
}





