
function doWindow (URL, x, y)
{
    var dtNow = new Date ();

    var dtRandom = dtNow.getHours () * 3600 + dtNow.getMinutes()* 60 + dtNow.getSeconds();

    var photoWnd = window.open (URL, "_howselife_"+dtRandom, 'resize=no,width='+x+',height='+y+' menubar=no,toolbar=no,status=no');

    photoWnd.moveTo (40,40);

    photoWnd.resizeTo (x+10,y+29);
}

function checkEmail()
{
  var email = document.getElementById("email");
  var email2 = document.getElementById("email2");
  
  if(email.value.indexOf("@") != "-1" && email.value.indexOf(".") != "-1")
  {
	   if(email.value != email2.value)
	   {
		alert("Your email address does not match: "+ email.value);
		return false;
	   }
	   else
	   {
	   return true;
	   }
   }
   else
   {
   	alert("Please be sure to enter in a proper email address.");
	return false;
   }	 
 
}

function  isSelected() {
  var buildsite = document.getElementById("buildsite");
  var makesite = document.getElementById("makesite");
  var none = document.getElementById("none");

	if(buildsite.checked == true || makesite.checked == true || none.checked == true) {
		return true
	} else {
	alert("Please make a selection.");
	return false;		
	}
} 



function doThing() {	
	waitTime = 30000;	
	setTimeout('noAd()', waitTime);
	}



function noAd() {

	var theElementStyle = document.getElementById('partners');
	
            {
            theElementStyle.style.display = "none";
            }	
	}


function showDiv(objectID)
{
	var theElementStyle = document.getElementById(objectID);
	
    if(theElementStyle.style.display == "none")
    {
        theElementStyle.style.display = "block";
    }
    else
    {
        theElementStyle.style.display = "none";
    }
}

// USED IN WEB DESIGNERS HANDBOOK
function jumpToArticle()
{
	killersitesBox = document.navForm.navigation;
	destination = killersitesBox.options[killersitesBox.selectedIndex].value;
	if (destination) location.href = destination;
}



