function Voteit()

{
	var temp1, temp2;
	var bool1, bool2;
	var pwd;

	temp1 = document.form1.id.value;
 	temp2 = document.form1.comment.value;

	if ((temp1 == "Erestor") || (temp1 == "erestor") || (temp1 == "admin") || (temp1 == "Admin"))
		pwd = prompt("password?", "");

	bool1 = (temp1 != "");
    bool2 = (temp2 != "");

    if (bool1 && bool2) { 
    	document.location = "http://erestor.net/guestbook/write.php?name=" + temp1 + "&comment=" + temp2 + "&password=" + pwd;
	}
  	else
   		alert("Please enter more data...");
}

