function select(obj) {
                obj.className="buttonSelect";
}
function unselect(obj,n) {
                obj.className="button" + n;
}
function select_left(obj) {
                obj.className="buttonSelected";
}
function unselect_left(obj,n) {
                obj.className="button"+n;
}
function openWin() {
    var popUpWin = open('registrationPopup.php','popUpWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width=760,height=420,left=0,top=0,screenX=0,screenY=0');
}
function openPrivacy() {
    var popUpWin = open('privacyPolicyPopup.php','popPrivacy','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width=760,height=560,left=0,top=0,screenX=0,screenY=0');
}
function submitForm(dateType, value) {
                var field = document.getElementById("dateType");
                field.value = dateType;
                var form = document.getElementById("dateForm");
                form.submit();
}
function printPuzzle()
{
other="toolbar=no,width=580,height=700,directories=no,menubar=no,scrollbars=yes";
window.open("/printPuzzle.php","PrintPuzzle",other);
return false;
}
function printPuzzleCode(puz) {
    str='printCurrentPuzzle.php?puzzle='+puz;
    var popUpWin = open(str,'popUpWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width=580,height=700,left=0,top=0,screenX=0,screenY=0');
}