// JavaScript Document
var usragent=navigator.userAgent.toLowerCase();
var is_mac  = (usragent.indexOf("mac") != -1);
var is_win  = (usragent.indexOf("win") != -1);
var is_ie   = (usragent.indexOf("msie") != -1); 
var is_nav  = ((usragent.indexOf('mozilla')!=-1) && (usragent.indexOf('spoofer')==-1) 
            && (usragent.indexOf('compatible') == -1) && (usragent.indexOf('opera')==-1) 
            && (usragent.indexOf('webtv')==-1));
var PrintWindow;
function popUpWin(url, newTool, newLocation, newStatus, newMenubar, newResizable, newScrollbars, newWidth, newHeight, newLeft, newTop) 
	{
		if (is_ie ||  is_nav) 
		{
			if (PrintWindow != null && !PrintWindow.closed) 
			{
                        oldWin = PrintWindow;
                        oldWin.name = "oldWin";
                        oldWin.close();
            }
		}
		PrintWindow=window.open(url,"newWin","toolbar=" + newTool + ",location=" + newLocation + ",status=" + newStatus + ",menubar=" + newMenubar + ",resizable=" + newResizable + ",scrollbars=" + newScrollbars + ",width=" + newWidth + ",height=" + newHeight + ",left=" + newLeft + ",top=" + newTop);
		if (PrintWindow.opener == null)
		{
        	PrintWindow.opener = popupWin;
        }
		PrintWindow.opener.name = "origWin";
        PrintWindow.focus();
	}
	
function closeWin()
	{
		this.close();
		PrintWindow = null;
	}
	
function checkSSL() {
	//*
	url = document.location + ''
	if (url.split("://")[0]=='http')
		document.location = 'https://' + url.split("://")[1];
	//*/
}