﻿var expDays = 30;
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function PopupLoader()
{
	var version = parseInt(navigator.appVersion);
	
	if (version >= 4)
	{
		var count = GetCookie('count');
		
		if(count == null)
		{
			SetCookie('count','1');
					
			OpenPopupWindow('Popup.aspx','popDialog', 280, 100);
		}
	}
}


function OpenPopupWindow(URL, Name, Width, Height)
{
    var PopupWindowConfig = "toolbar=0,resizable=0,scrollbars=0,status=0,left=75,top=75,width=" + Width + ",height=" + Height;
    var NewWindow = window.open(URL, Name, PopupWindowConfig);
    NewWindow.window.focus();
}

function OpenPopupWnidow(URL, Name, Width, Height)
{
    // I goofed with a function name.  This should hold it till we find them all.  :D
    OpenPopupWindow(URL, Name, Width, Height);
}