<!--
// For the LinkZone popup window
function launchPopup() {
    wnd=window.open('newrecord.asp','wnd','width=250,height=225,resizable=no,scrollbars=no');
}

// For the eSzaro popup window
function eszaro() {
var eszaro= window.open('','eszaro','resizable=yes,scrollbars=yes,status=yes,menubar=yes,toolbars=yes,width=800,height=600,left=0,top=0');
}

// Blower pic on mylan.htm
function blower() {
        window.open('blower.htm','EANITHING','toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=no,width=300,height=300');
}

// Comcast download speed on mylan.htm
function comcast_graph() {
        window.open('comcast_graph.htm','EANITHING','toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=no,width=600,height=350');
}

// Auto-bookmark the website when the function is called.
function addToFavorites() {
	if (navigator.appName == 'Microsoft Internet Explorer' && parseInt(navigator.appVersion) >= 4) {
		window.external.AddFavorite('http://www.peterszaro.com/', 'Peter Szaro');
	}
}

// For the quick clipboard copy feature in IE5+
function CopyToClipboard(sFormat, sData) {
	if (window.clipboardData) {
		window.clipboardData.setData(sFormat, sData);

		// Display confirmation:
		alert('The above code has now been saved into the clipboard!')

	} else {
		// Will not work on older browser:
		alert('This feature is only available for IE 5 and above.')
	}
}

// For Chromeless Windows
function openIT(theURL,W,H, wname) {
	CLOSEdwn 		= "../html/images/close_dwn.gif"
	CLOSEup 		= "../html/images/close_ovr.gif"
	CLOSEovr 		= "../html/images/close_ovr.gif"
	MINIdwn 		= "../html/images/mini_dwn.gif"
	MINIup 			= "../html/images/mini_ovr.gif"
	MINIovr 		= "../html/images/mini_ovr.gif"
	NONEgrf 		= "../html/images/none.gif"
	CLOCKgrf		= "../html/images/clock.gif"
	titHTML 	   	= "<font color=#FFFFFF><font face=verdana size=1> [ Szaro Certification Gallery ]</font></font>"
	titWIN			= "Gallery"
	winBORDERCOLOR   	= "#FFFFFF"
	winBORDERCOLORsel	= "#FFFFFF"
	winBGCOLOR    		= "#212c38"
	winBGCOLORsel 		= "#212c38"
	mywin = openchromeless(theURL, wname, W, H, NONEgrf, CLOSEdwn, CLOSEup, CLOSEovr, MINIdwn, MINIup, MINIovr, CLOCKgrf, titHTML, titWIN, winBORDERCOLOR, winBORDERCOLORsel, winBGCOLOR, winBGCOLORsel)
}

// Auto-bookmark Script
var bookmarkurl="http://peterszaro.com"
var bookmarktitle="Peter Szaro"
function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

// For detection popup script /html/index.htm
function DETECTION() {
        window.open('detection.htm','EANITHING','toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=no,width=450,height=150');
}

// For Popup Script With Cookie
function imgWindow(imgS,imgT,imgW,imgH)
  {
	var winW = (imgW + 12) ;
	var winH = (imgH + 53) ;
	var winF = "resizable=0,scrollbars=0,width=" + winW + ",height=" + winH ;
	imgWin = window.open("","newWin",winF) ;
	imgWin.document.write("<html><head><title>" + imgT + "</title></head>"
		+ "<body bgcolor=#B1C3DA text=#ffffff marginHeight=0 marginWidth=0 "
		+ "topMargin=5 bottomMargin=0 leftMargin=0 rightMargin=0>"
		+ "<basefont size=3 face=Arial><center>") ;
	imgWin.document.write("<a href='http://www.eszaro.com/' target='_new'>"+"<img src='" + imgS + "' alt='" + imgT + "' "
		+ "border=0 width=" + imgW + " height=" + imgH + "></a><br>"
		+ "<form><input type=button value='Close Window' "
		+ "onClick='window.close()'></form><br>") ;
	imgWin.document.write("</center></body></html>") ;
}
// Login Script

function Login(form) {
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var htsite = "http://" + username + ":" + password + "@" + server;
window.location = htsite;
}
else {
alert("Please enter your username and password.");
   }
}
// close pop-up image windows
function closeImageWindow() {
	if (ImageWindow != null && !ImageWindow.closed) ImageWindow.close();
}
// open a new, formatted image window
var ImageWindow = null;
function openImage(imageURL,imageTitle,imageWidth,imageHeight) {
	// check if window is open: then close
	closeImageWindow();

	// create an Image Window
	ImageWindow = openCenteredWindow('','ImageWindow'+imageWidth+'_'+imageHeight,imageWidth,imageHeight,'no');
	// write to, and format, ImageWindow
	ImageWindow.document.open();
	ImageWindow.document.write("<HTML><HEAD><TITLE>" + imageTitle + "</TITLE></HEAD><BODY BGCOLOR=black LEFTMARGIN=0 TOPMARGIN=0 onClick=\"window.close()\" STYLE=\"margin: 0px;\"><TABLE WIDTH=100% HEIGHT=100% CELLSPACING=0 CELLPADDING=0><TR><TD ALIGN=CENTER VALIGN=MIDDLE><IMG SRC=\"" + imageURL + "\" BORDER=0></TD></TR></TABLE></BODY></HTML>");
	ImageWindow.document.close();
}
// open a content window (with consideration for screen size)
function openCenteredWindow(contentURL,contentTitle,contentWidth,contentHeight,scrollBars) {
	// center window on screen
	var winLeft = (screen.width - 1 - contentWidth) / 2;
	var winTop = (screen.height - 1 - contentHeight) / 2;

	if (winLeft < 0) {
		scrollBars = "yes";
		winLeft = 10;
		contentWidth = screen.width - 30;
	}
	if (winTop < 0) {
		scrollBars = "yes";
		winTop = 10;
		contentHeight = screen.height - 100;
	}

	var NewWindow = window.open(contentURL,contentTitle,'scrollbars='+scrollBars+',width='+contentWidth+',height='+contentHeight+',top='+winTop+',left='+winLeft+',screenX='+winLeft+',screenY='+winTop);
	NewWindow.focus();
	return NewWindow;
}

// Mouseover Opace Script
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=0.3
else if (which2.filters)
which2.filters.alpha.opacity=30
}

function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}

//Set cookie script - found @ http://www.chumpsquad.com/erik/gm/cookies/cookieshowto.html
function setCookie(name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");
document.cookie = curCookie;
}

function getCookie(name) {
var prefix = name + "=";
var nullstring = "";
var cookieStartIndex = document.cookie.indexOf(prefix);
if (cookieStartIndex == -1)
return nullstring;
var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length);
if (cookieEndIndex == -1)
cookieEndIndex = document.cookie.length;
return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex));
}

function deleteCookie(name, path, domain) {
if (getCookie(name)) {
document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"
};
}

function fixDate(date) {
var base = new Date(0);
var skew = base.getTime();
if (skew > 0)
date.setTime(date.getTime() - skew);
}

//-->