/* $Id: script.js,v 1.2 2006/06/19 14:15:29 matt Exp $ */
var disclaimerWin

function disclaimer() {
	// Make the window work locally as well as remotely
	var loc = 'disclaimer.html'
	if(self.location.protocol == 'http') {
		loc = self.location.hostname + '/' + loc;
	} else if (self.location.href.match(/\/heat_exchangers\/|\/industrial_separators\/|\/marine_separators\//)) {
		loc = '../' + loc;
	} else if (self.location.href.match(/ilsmart\.com/)) {
		loc = 'http://www.separator-spareparts.com/' + loc;
	}
	
	// Screen position
	x = (screen) ? (screen.availWidth - 250)/2 : 195;
	y = (screen) ? (screen.availHeight - 300)/2 : 90;
	
	disclaimerWin = window.open(loc, '','fullscreen=no, toolbar=no, status=no, menubar=no, scrollbars=yes, resizable=yes, directories=no, location=no, width=250, height=300, screenX='+x+', screenY='+y+', top='+y+',left='+x);
	disclaimerWin.focus();  // bring the popup window to the front
}

/*-- START CODE FOR POPUP --*/
function popUp(URL)
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=600');");
}
/*-- END CODE FOR POPUP --*/