function newwinx(pname,wname) {
    var wide = 605;
    var high = 400;
    if (screen)
    {
      wide = (screen.availWidth * .92);
      high = (screen.availHeight * .85);
    }
    
window.open(pname,wname,"toolbar=1,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=" + wide + ",height=" + high);

}

function smallwin(pname,wname,wide,high) {
    
window.open(pname,wname,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=" + wide + ",height=" + high);

}

function getmail() {

     if (document.forms['form1'].email.value.indexOf("@") == -1 ) {
                                alert("Please Enter a Valid Email Address!")
                                return false
                        }
        document.cookie="mxcu=" + document.forms['form1'].email.value +
                ";domain=.homecu.net; path=/";
        document.forms['form1'].submit();
}
function newwin(pname, wname) {
    var wide = 605;
    var high = 400;
    var wpct = .92;
    var hpct = .95;
    var top = 2;
    var left = 2;
if (self.innerWidth)
{
	wide = (self.innerWidth * wpct);
	high = (self.innerHeight * hpct);
}
else if (document.documentElement && document.documentElement.clientWidth)
{
	wide = (document.documentElement.clientWidth * wpct);
	high = (document.documentElement.clientHeight * hpct);
}
else if (document.body)
{
	wide = (document.body.clientWidth * wpct);
	high = (document.body.clientHeight * hpct);
}
window.open(pname,wname,"toolbar=1,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=" + wide + ",height=" + high + ",left=" + left + ",screenX=" + left + ",top=" + top + ",screenY=" + top);
}
