// 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) { 
// do nothing - OK we are not being framed
} else { alert(alertmsg); window.top.location.href = 'http://www.IDEportal.com/Team/Default.asp'; }
//Std New Popup Window
// useage: <a href="URL" onclick="makeNewWindow(this,'Data');" target="_blank" title="" class="noprint">
function makeNewWindow(myLink,windowName){ 
var newWindow; var wide=640, high=480; var xOffset=(screen.width-wide)/2, yOffset=((screen.height-high)/2);
newWindow=window.open("",windowName,"height="+high+",width="+wide+",menubar=0,resizable=1,scrollbars=1,status=1,screenX="+xOffset+",screenY="+yOffset+",left="+xOffset+",top="+yOffset+""); 
newWindow.focus(); myLink.target=windowName; }
// Custom Popup Window
// useage: <a href="URL" onclick="CustomWindow('DataForm',this,'640','480','0','20',false,false,false,true,true,true);" target="_blank" title="">
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); spclWindow.focus(); url.target=windowName; }