<!-- Paste this code into an external JavaScript file named: ajax_navagation.js  -->

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Michael :: http://www.posters-bestellen.nl */
var please_wait = null;

function open_url(url, target) {
//alert('got external'+url+target);
       if ( ! document.getElementById) {
               return false;
       }

       if (please_wait != null) {
               document.getElementById(target).innerHTML = please_wait;
       }

       if (window.ActiveXObject) {
               link = new ActiveXObject("Microsoft.XMLHTTP");
       } else if (window.XMLHttpRequest) {
               link = new XMLHttpRequest();
       }

       if (link == undefined) {
               return false;
       }
       link.onreadystatechange = function() { response(url, target); }
       link.open("GET", url, true);
       link.send(null);
}

function response(url, target) {
       if (link.readyState == 4) {
               document.getElementById(target).innerHTML = (link.status == 200) ? link.responseText : "Ooops!! A broken link! Please contact the webmaster of this website ASAP with the following errorcode: " + link.status;
       }
}

function set_loading_message(msg) {
       please_wait = msg;
}

function submitform()
{
  document.update_descriptions.submit();
}

function submitform_update_freeform()
{
  document.update_freeform.submit();
}

function unHider()
{
document.all.div1.style.display = 'block';
document.all.div2.style.display = 'none';
}
function hider()
{
document.all.div1.style.display = 'none';
document.all.div2.style.display = 'block';
}

function Confirm()
{
confirm ("Are you sure you want to delete this Stock Number?");
} 

/*
<html>
<head>
<script language="Javascript" src="javascript/browsercheck.js"></script>
<script type="text/javascript" src="../../js/ajax_navagation.js"></script>

<script>
 set_loading_message("Gathering Information - One Moment Please....");
</script>
</head>

<body onload="document.DACartonAudit.number.focus()">

	
<a href="javascript:void(0)" 
	onclick="open_url('<?php echo "http://bkmast001.bkmtexas.com/Ops/WhseAudit/OrderDetails.php?number=$HDS_Order_No";?>','my_site_content');">Order Summary</a>
    </td>

<td><div id="my_site_content"></td>

*/

