﻿<!-- ********************************************** -->	
	
	
<!-- ********************************************** -->	
// SITE EXIT MESSAGE	
	function exitMsg(name, url)
{
    window.open(url);
  /*message=window.open();
  message.document.writeln("<!DOCTYPE HTML PUBLIC '-//IETF//Dtd HTML//EN'>");
  message.document.writeln("<html><head><title>Exit Message</title>");
  message.document.writeln("<SCRIPT>function goAway() {window.location.href='" + url +"'} </SCRIPT>");
  message.document.writeln("<!-- ******** External Stylesheet for all pages ********-->");    
  message.document.writeln("<link rel='Stylesheet' href='/style/CBW.css' type='text/css'>");
  message.document.writeln("</head>");
  message.document.writeln("<body class='popup'>");
  message.document.writeln("<CENTER><H1><font face='arial, sans serif'>Are you sure you want to leave the <i>DTIRP Website</i>?</font></H1></CENTER>");
  message.document.writeln("<P><font face='arial, sans serif'>You are about to leave the <i>DTIRP Website</i> and go to  <b>" + name + "</b>.");
  message.document.writeln("<P>The appearance of this hyperlink does not constitute an endorsement by the Defense Treaty Inspection Readiness Program (DTIRP) of this Web site or the information, products, or services contained therein, nor does the DTIRP exercise any editorial control over the information you may find at this Web site. These links are provided consistent with the stated purpose of this Department of Defense (DoD) Web site.</font>");
  message.document.writeln("<CENTER><FORM>")
  message.document.writeln("<INPUT TYPE='button' NAME='stay' VALUE='Stay'");
  message.document.writeln("onClick='window.close()'>");
  message.document.writeln("<INPUT TYPE='button' NAME='leave' VALUE='Leave'");
  message.document.writeln("onClick='goAway()'>");
  message.document.writeln("</FORM></CENTER>");
  message.document.writeln("<center></center>");
  message.document.writeln("</body></html>");
  message.document.close();*/
}
<!-- ********************************************** -->	
	
<!-- ********************************************** -->	
//POP UP 	
function openwin(location, width, height, top, left, scroll){

var arguments;
var scrollbar;

if(!width) width = 300
if(width == "scroll"){
   scrollbar = "scrollbars";
   width = 300;
   }
   
if(!height) height = 300
if(height == "scroll"){
   scrollbar = "scrollbars";
   height = 300;
   }
   
if(!top) top = 200
if(top == "scroll"){
   scrollbar = "scrollbars";
   top = 200;
   }

if(!left) left = 200
if(left == "scroll"){
   scrollbar = "scrollbars";
   left = 200;
   }
   
if(scroll) scrollbar = "scrollbars"

arguments = "height=" +height +",width=" +width +",left=" +left +",top=" +top +",screenX=" +left +",screenY=" +top +",directories=no,fullscreen=no,location=no,menubar=no,toolbar=no,resizable=yes," +scrollbar;

window.open(location,"popup",arguments);
}


function rollover(text){
	/*//if IE 4+
	if (document.all)
		dcontent.innerHTML=text;
	//NS 4 doesn't support IFRAME, so we don't need to support it here
	//since these links only show up in an IFRAME for now
	  //else if NS 4
	  //else if (document.layers){
		//document.ns4dcontent.document.ns4dcontent2.
		//document.write(text);
		//document.ns4dcontent.document.ns4dcontent2.
		//document.close();
	//}
	  //else if NS 6 (supports new DOM)
	  else if (document.getElementById){
		rng = document.createRange();
		el = document.getElementById("dcontent");
		rng.setStartBefore(el);
		htmlFrag = rng.createContextualFragment(text);
		while (el.hasChildNodes())
			el.removeChild(el.lastChild);
			el.appendChild(htmlFrag);
	}
	*/
}
var win = null;
function newWindow(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}
 
