// PIXLES TO ADD TO IMAGE HEIGHT
	addHeight=45

function FN_openWin(thisPage, preWidth, preHeight){

	screenHeight=preHeight+addHeight;

	myScrollBars=""

	// add border
	myWidth=preWidth+20;

	myX=(screen.width-myWidth) / 2 
	myY=20 // compensate for mac/windows bars

	if (screen.height < 601){
		screenHeight=(screen.height*.7);
            	// scrollbars yes
            		myScrollBars=1;
            			myWidth+=20;
	}

	myY=(screen.height-screenHeight)/2 // center on page

	newPage=thisPage

	if (myScrollBars>0) myScrollBars="scrollbars="+myScrollBars;


	commands='toolbar=0,location=0,statusbar=0,'
	commands+=myScrollBars
	commands+=',width='
	commands+=myWidth
	commands+=',height='
	commands+=screenHeight
	commands+=',resizable=1'

	NewWindow = window.open(newPage, "windowname", commands)

	//NewWindow.moveTo(myX,myY);
	NewWindow.focus();

}

function fnLoader(mheight){
			
	screenHeight=mheight+addHeight;
	myScrollBars=0;
	myWidth=420+40;

	myX=(screen.width-myWidth) / 2 
	myY=20 // compensate for mac/windows bars

	if (screen.height < 601){
		myWidth+=20;
	}
	
	if (screen.height < screenHeight){
	//	screenHeight=(screen.height-60)-myY;
	}


	myY=(screen.height-screenHeight)/2 // center on page

	if (document.all && !document.layers && screenHeight<screen.height) {
			screenHeight=screenHeight+10;
			//alert(screenHeight)
	}

	// width,height
	if ( !document.all ) resizeTo(myWidth,screenHeight)
	moveTo(myX,myY);
	//location.href=history.go(0);

}


function FN_myContactWin(){

	screenHeight=screen.height/2;
	myWidth=460;

	fakWidth=myWidth;


	myX=(screen.width-fakWidth) / 2 
	myY=20 // compensate for mac/windows bars

	myWidth+=20;


	myY=(screen.height-screenHeight)/2 // center on page

	newPage="emailer.php";

	commands='toolbar=0,location=0,scrollbars='
	commands+=0
	commands+=',width='
	commands+=myWidth
	commands+=',height='
	commands+=450
	commands+=',resizable=0'

	NewWindow = window.open(newPage, "windowname", commands)

	NewWindow.moveTo(myX,myY);
	NewWindow.focus();
}
// -->