/*
Purpose: Generate pop up window

e.g. for vehicle table, used whilst prospect is half way through filling in email form, and we don't want to risk losing info already entered by navigating away from it, getting into frames problems etc

History:

EP 2006-02-06 first version
*/

function popuptable(width, height, src)
{

	if (window.innerWidth) {
		LeftPosition =(window.innerWidth-width)/2;
		TopPosition =((window.innerHeight-height)/4)-50;
		}
	else {
		LeftPosition =(parseInt(window.screen.width)-width)/2;
		TopPosition=((parseInt(window.screen.height)-height)/2)-50;
		}

	attr = 'resizable=yes,scrollbars=yes,location=no,status=no,toolbar=no,menubar=no,directories=no,width=' + width + ',height=' + height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' + TopPosition + '';

	popWin = window.open(src, "popup", attr);

}
