if (screen.width<1024)
{
 alert('Your current screen resolution is '+screen.width+' x '+screen.height+'\rFor optimal viewing your screen resolution should be    \r1024 x 768 or higher.    ');
}


function refreshParent() {
  window.opener.location.href = window.opener.location.href;

  if (window.opener.progressWindow)
		
 {
    window.opener.progressWindow.close()
  }
  window.close();
}

function blackout()
{
    top.window.close();
    window.location="YourBannerPage.php";

}

function test()
{
    window.location="check_banned.php";
}

expirationDate = new Date;
expirationDate.setMonth(expirationDate.getMonth() + 12);

var now = new Date();
var tomorrow = new Date(now.getTime() + 1000 * 60 * 60 * 24 * 365);
var today = new Date(now.getTime() + 1000 * 60  * 60 );
var yesterday = new Date(now.getTime() + -1000 * 60 * 60 * 24);
var oneday = new Date(now.getTime() + 1000 * 60 * 60 * 24);

function setCookie(cookieName, cookieValue, expires, path, domain, secure)
{
    document.cookie = cookieName + '=' + cookieValue
    + (expires ? '; EXPIRES=' + expires.toGMTString() : '')
    + (path ? '; PATH=' + path : '')
    + (domain ? '; DOMAIN=' + domain : '')
    + (secure ? '; SECURE' : '');
}
function setValidCookie(cookieName, cookieValue, expires, path, domain, secure)
{
    document.cookie = cookieName + '=' + cookieValue
    + (expires ? '; EXPIRES=' + today.toGMTString() : '')
    + (path ? '; PATH=' + path : '')
    + (domain ? '; DOMAIN=' + domain : '')
    + (secure ? '; SECURE' : '');
}
function refreshnow()
{
    window.location.reload()
}

function isAlphaNumericString(InString)
{
    var testString;
    var test1;
    var test2;
    testString = /\w/;
    test1 = testString.test(InString); 
    testString = /\s/;
    test2 = testString.test(InString);

    if((test1)&&(test2))
    {
        return true;
    }
    else
    {
        return false;
    }
}

function GuestBook()
{
    var enabled = navigator.cookieEnabled;
    if(enabled)
    {
        window.location="guestbook.php";
    }
    else
    {
        window.location="fake_guestbook.php";
    }

}

