function move_box (id) {
		var m = document.getElementById(id);
		/*m.style.left = xMousePos * .25 +'px';*/
		m.style.top = yMousePos * 1.08 +'px';
	}

	if (document.layers) { // Netscape
	    document.captureEvents(Event.MOUSEMOVE);
	    document.onmousemove = captureMousePosition;
	} else if (document.all) { // Internet Explorer
	    document.onmousemove = captureMousePosition;
	} else if (document.getElementById) { // Netcsape 6
	    document.onmousemove = captureMousePosition;
	}
	// Global variables
	xMousePos = 0; // Horizontal position of the mouse on the screen
	yMousePos = 0; // Vertical position of the mouse on the screen
	xMousePosMax = 0; // Width of the page
	yMousePosMax = 0; // Height of the page

	function captureMousePosition(e) {
	    if (document.layers) {
	        xMousePos = e.pageX;
	        yMousePos = e.pageY;
	        xMousePosMax = window.innerWidth+window.pageXOffset;
	        yMousePosMax = window.innerHeight+window.pageYOffset;
	    } else if (document.all) {
	        xMousePos = window.event.x+document.body.scrollLeft;
	        yMousePos = window.event.y+document.body.scrollTop;
	        xMousePosMax = document.body.clientWidth+document.body.scrollLeft;
	        yMousePosMax = document.body.clientHeight+document.body.scrollTop;
	    } else if (document.getElementById) {
	        xMousePos = e.pageX;
	        yMousePos = e.pageY;
	        xMousePosMax = window.innerWidth+window.pageXOffset;
	        yMousePosMax = window.innerHeight+window.pageYOffset;
	    }
	}

// JavaScript Document
function showhide(id){ 
	if (document.getElementById){ 
	obj = document.getElementById(id); 
		if (obj.style.display == "none"){ 
		move_box('htmid');
		obj.style.display = "";
		} else { 
		/*obj.style.display = "none"; */
		} 
	} 
	
} 

function hide(id){ 
	if (document.getElementById){ 
	obj = document.getElementById(id); 
	obj.style.display = "none"; 
	} 
} 

function myClose() {
	allowPrompt = false;
    close();
}

var allowPrompt = true;
window.onbeforeunload = WarnUser;
 
function WarnUser()
{
   if(allowPrompt)
   {
	  showhide('script');
	  return "We understand that you may not be comfortable providing your phone number. But, we have some other options that will allow you to get pricing and other information without a risk to your privacy. Click CANCEL to learn more.";
   }
   else
   {
      // Reset the flag to its default value.
      allowPrompt = true;
   }
}
 
function NoPrompt()
{
   allowPrompt = false;
}