		
//*************************************************************
//Opens window in center of screen
//-------------------------------------------------------------

function newWin(url, name, w, h) 
{
l = (screen.availWidth-10 - w) / 2;
t = (screen.availHeight-20 - h) / 2;

features = "width="+w+",height="+h+",left="+l+",top="+t;
features += ",screenX="+l+",screenY="+t;
features += ",scrollbars=0,resizable=0,location=0";
features += ",menubar=0,toolbar=0,status=0";

if (!window.open(url, name, features)){
	alert("To Use This Portion of the Site, You must DISABLE your Popup Blocker \n\n OR \n\n Try Pressing the CTRL key when clicking the link/button.");
}
}

function newOpenerWin(url, name, w, h) 
{
l = (screen.availWidth-10 - w) / 2;
t = (screen.availHeight-20 - h) / 2;

features = "width="+w+",height="+h+",left="+l+",top="+t;
features += ",screenX="+l+",screenY="+t;
features += ",scrollbars=0,resizable=0,location=0";
features += ",menubar=0,toolbar=0,status=0";

window.opener.newWin(url, name, w, h)
}

function setFocus(sFieldName)
{
document.all(sFieldName).focus();
}

function resizeToCenter(w, h) 
{
l = (screen.availWidth-10 - w) / 2;
t = (screen.availHeight-20 - h) / 2;

window.resizeTo(w, h);
window.moveTo(l, t);
}

function leave(sLink)
{   
	var answer = confirm('You are now accessing a site not affiliated with TechMatch.com. \n\n Click OK to continue. '); 
    if(answer)  window.open(sLink);
} 

function printNewWin(url, name, w, h) 
{
	l = (screen.availWidth-10 - w) / 2;
	t = (screen.availHeight-20 - h) / 2;

	features = "width="+w+",height="+h+",left="+l+",top="+t;
	features += ",screenX="+l+",screenY="+t;
	features += ",scrollbars=1,resizable=0,location=0";
	features += ",menubar=0,toolbar=0,status=0";

	window.open(url, name, features);
}

