// JavaScript Document

function printPage() {
		if (window.navigator.userAgent.indexOf('Netscape') > 0) {
			window.setTimeout(window.print,1);
		} 
		else {
			window.print();
		}
	}
	
	
function intEmailContent(URL,Title) {
	if (!URL) {
		URL = escape(window.location);
	}
	if (!Title) {
		Title = escape(document.title);
	}
	window.location = 'mailto:?subject=' + Title + '&body=Look%20what%20I%20found%20on%20IntegrityWindows.com:%0A%0A' + Title + '%0A' + URL;
}

function galleryPopUp(url) {
window.open(url,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=660,height=660,left=100,top=100');
}

function popupImage(sTitle, sIgnore, url, intWidth, intHeight) {
// window.open(url,'popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + (intWidth + 40) + ',height=' + (intHeight + 40) + ',left=100,top=100');
window.open('popupIntegrity.aspx?image=' + url + '&title=' + sTitle,'popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=660,height=660,left=100,top=100');
}








// -------------------------------------------------------------------------------
//
// Ham in the Fridge Functions 
//
function clearText(thefield) { 
	if (thefield.defaultValue == thefield.value) { 
		thefield.value = "" 
		thefield.style.color = "#464646"
	}
	else {
		thefield.value = thefield.defaultValue
		thefield.style.color = "#7c7c7c" 
	}
}