//---------------------------------
// Assign the Shipment Origination 
//---------------------------------
function set_ship_orig(strSelection)
{
//---------------------------------------------------------------
// Note: Since a simple re-assignment statement only works for
//	 IE, more elaborate code must be substituted for both 
//	 IE and Netscape to function properly
// Example: document.frmSearch.cboShipOrig.value = strSelection;
//---------------------------------------------------------------
for ( i=0; i<document.frmSearch.cboShipOrig.options.length; i++ )
	{
	if ( document.frmSearch.cboShipOrig.options[i].value == strSelection )
		{
		document.frmSearch.cboShipOrig.options[i].selected = true;
		break;			
		}
	}
}


//---------------------------------
// Assign the Shipment Destination 
//---------------------------------
function set_ship_dest(strSelection)
{
//---------------------------------------------------------------
// Note: Since a simple re-assignment statement only works for
//	 IE, more elaborate code must be substituted for both 
//	 IE and Netscape to function properly
// Example: document.frmSearch.cboShipDest.value = strSelection;
//---------------------------------------------------------------
for ( i=0; i<document.frmSearch.cboShipDest.options.length; i++ )
	{
	if ( document.frmSearch.cboShipDest.options[i].value == strSelection )
		{
		document.frmSearch.cboShipDest.options[i].selected = true;
		break;			
		}
	}
}



//-----------------------
// Reset the entire form
//-----------------------
function clear_button_click(strSelectDefault)
{
var strSelectDefault = "--------------------------------- select ---------------------------------";
set_ship_orig(strSelectDefault)
set_ship_dest(strSelectDefault)
}



//---------------------
// Open a PopUp Window 
//---------------------
function open_pop_up_window(url)
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=450,height=325,left=362,top=234,screenX=30,screenY=40,dependent=yes');");
}


//---------------------
// Open a PopUp Window 
//---------------------
function open_pop_up_window2(url)
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=625,height=500,left=362,top=234,screenX=30,screenY=40,dependent=yes');");
}
