// print this window
function printWindow(){ version = parseInt(navigator.appVersion); if (version >= 4) window.print(); }
// Stay out of frames
//var alertmsg = 'This Site Content Can NOT be Viewed in any other Framed Site'  + '\n'  + 'You will be Redirected to our Home Page not in Frames.' + '\n' + '\n' + 'Click "OK" to proceed.' + '\n';
//if (parent.location.href == self.location.href) { 
// OK we are not being framed
//} else { alert(alertmsg); window.top.location.href = '/Default.asp'; }

//Std New Popup Window
function makeNewWindow(windowLink,windowName){ 
var newWindow; var wide=640, high=560; var xOffset=(screen.width-wide)/2, yOffset=((screen.height-high)/2)-20;
newWindow=window.open("",windowName,"height="+high+",width="+wide+",menubar=0,resizable=1,scrollbars=1,status=1,screenX="+xOffset+",screenY="+yOffset+",left="+xOffset+",top="+yOffset+""); 
windowLink.target=windowName; newWindow.focus(); return false;}
// Special Popup Windows
function CustomWindow(windowName,url,wd,ht,setXo,setYo,nav,loc,menu,sts,scroll,resize) {
var spclWindow; var windowProperties;
var xset=(screen.width-wd)/2-setXo; var yset=((screen.height-ht)/2)-setYo;
if(wd!="") {windowProperties='width='+wd+',';} else {windowProperties='width="640",';}  
if(ht!="") {windowProperties+='height='+ht+',';} else {windowProperties='height="560",';}  
if(nav==false) {windowProperties+='toolbar=no,';} else {windowProperties+='toolbar=yes,';} 
if(loc==false) {windowProperties+='location=no,';} else {windowProperties+='location=yes,';} 
if(sts==false) {windowProperties+='status=no,';} else {windowProperties+='status=yes,';} 
if(menu==false) {windowProperties+='menubar=no,';} else {windowProperties+='menubar=yes,';} 
if(scroll==false) {windowProperties+='scrollbars=no,';} else {windowProperties+='scrollbars=yes,';} 
if(resize==false) {windowProperties+='resizable=no,';} else {windowProperties+='resizable=yes,';} 
if(xset!="") {windowProperties+='screenX='+xset+',left='+xset+',';} 
if(yset!="") {windowProperties+='screenY='+yset+',top='+yset+',';} 
if(windowProperties!="") { 
if(windowProperties.charAt(windowProperties.length-1)==',') {windowProperties=windowProperties.substring(0,windowProperties.length-1);} }
spclWindow=window.open(url,windowName,windowProperties); url.target=windowName; spclWindow.focus(); return false;
}
