function MM_jumpMenu(targ,selObj,restore){	
	var tmp = selObj.options[selObj.selectedIndex].value;
	if(tmp=='1'){
	window.open( "https://agribusiness.tradepalette.com");
	return;
	}
	if(tmp=='2'){
	window.open( "https://agribusiness.tradepalette.com");
	return;
	}
	if(tmp=='3'){
	window.open( "https://agribusiness.tradepalette.com");
	return;
	}
	if(selObj.options[selObj.selectedIndex].value!= '#' && selObj.options[selObj.selectedIndex].text.indexOf(">>") == -1){
		alert('You have not subscribed for this application, Please contact CrimsonLogic to subscribe this application.');
		return false;
	}
	var str = tmp.substring(0,13);
	//var str = tmp.charAt(0) + tmp.charAt(1) + tmp.charAt(2) + tmp.charAt(3) + tmp.charAt(4) + tmp.charAt(5) + tmp.charAt(6) + tmp.charAt(7) + tmp.charAt(8) + tmp.charAt(9) + tmp.charAt(10) + tmp.charAt(11) + tmp.charAt(12);
	if (str =='_PopNewWindow'){
		eval(tmp);
	} else {
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	}
	if (restore) 
		selObj.selectedIndex=0;
}
function tmt_winLaunch(theURL,winName,targetName,features) {
	eval(winName+"=window.open('"+theURL+"','"+targetName+"','"+features+"')")
}
function MM_goToURL() {
	var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
	for (i=0; i<(args.length-1); i+=2) 
		eval(args[i]+".location='"+args[i+1]+"'");
}
function logout(){
	if (confirm("Would you like to logout from the application (s)?")) {
		return true;
	} else
		return false;
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}



//scroller width
var swidth=130;

//scroller height
var sheight=80;

//scroller's speed;
var sspeed=2

var wholemessage=''

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

//text: change to your own
//remove comment when move to pdtn so tt advertisement can be shown
wholemessage='<table width=125><tr><td class="txt-body-medium">'+'09/08/2007:<br>Welcome to the <b>TradePalette</b>, the only online portal which connects you to <b>Australian Customs, Australian Quarantine and the Stevedores</b> which provides you access to EDNs, RFPs, PRAs, IMDs, SCRs with a single login, no need to update and index your PC or login to multiple web sites or software. For email support please email <br><b>customer<br>@crimsonlogic<br>.com.au</b><br><br>' + '</td></tr><tr><td class="txt-body-medium">Brought to you by <a href=http://www.crimsonlogic.com>CrimsonLogic</a></td></tr></table>'

function start(){
// showAdvertisement();
	if (document.all)
		return

	if (document.getElementById){
		document.getElementById("slider").style.visibility="show"
		ns6marquee(document.getElementById('slider'))
	} else if(document.layers){
		document.slider1.visibility="show"
		ns4marquee(document.slider1.document.slider2)
	}
}

function showAdvertisement(){
	var advertFlag = 'TRUE'
	if (advertFlag=='' || advertFlag == 'FALSE'){
		MM_openBrWindow('/trade/atd/html/advert.htm','Advertising','width=678,height=430');
	} else {
	}
}

function ns4marquee(whichlayer){
	ns4layer=eval(whichlayer)
	ns4layer.document.write(wholemessage)
	ns4layer.document.close()
	sizeup=ns4layer.document.height
	ns4layer.top-=sizeup
	ns4slide()
}

function ns4slide(){
	if (ns4layer.top>=sizeup*(-1)){
		ns4layer.top-=sspeed
		setTimeout("ns4slide()",100)
	} else {
		ns4layer.top=sheight
		ns4slide()
	}
}

function ns6marquee(whichdiv){
	ns6div=eval(whichdiv)
	ns6div.innerHTML=wholemessage
	ns6div.style.top=sheight
	sizeup=sheight
	ns6slide()
}

function ns6slide(){
	if (parseInt(ns6div.style.top)>=sizeup*(-1)){
		ns6div.style.top=parseInt(ns6div.style.top)-sspeed
		setTimeout("ns6slide()",100)
	} else {
		ns6div.style.top=sheight
		ns6slide()
	}
}

function payment(){
	document.SubmitLogin.pSubmit.value="INV";
	document.SubmitLogin.action="/atdweb81/atd/PaymentServlet";
	document.SubmitLogin.submit();
}