// JavaScript Document
function clrfrm(){
document.all.form_Login.submit();
document.all.form_Login.login.value=""
document.all.form_Login.password.value=""
return false;
}

function clrfrm1(){
document.all.form1.submit();
document.all.form1.DLCargoNo.value=""
document.all.form1.TxtNum.value=""
return false;
}

function fmsubmit(){
document.getElementById("form3").submit();
}

function ccolor(sma){
document.getElementById(sma).style.color="#000000";
}

function ncolor(sma){
document.getElementById(sma).style.color="";
}


//window.onscroll=headermove

function posTop() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement && document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0;}

function ltmenumove(position1){
var newposition1
newposition1=posTop();
latestposition = parseInt(position1);
if(latestposition<newposition1){
latestposition=latestposition+1;
document.getElementById("ltmenu").style.top=latestposition+150;
document.getElementById("ltprofile").style.top=(latestposition+150);
document.getElementById("ltservices").style.top=(latestposition+19+150);
document.getElementById("ltbooking").style.top=(latestposition+76+150);
document.getElementById("ltnetwork").style.top=(latestposition+95+150);
document.getElementById("ltresource").style.top=(latestposition+114+150);
document.getElementById("ltforms").style.top=(latestposition+133+150);
document.getElementById("ltimform").style.top=(latestposition+133+150);
document.getElementById("ltxform").style.top=(latestposition+152+150);
}
if(latestposition>newposition1){
latestposition=latestposition-1;
document.getElementById("ltmenu").style.top=latestposition+150;
document.getElementById("ltprofile").style.top=(latestposition+150);
document.getElementById("ltservices").style.top=(latestposition+19+150);
document.getElementById("ltbooking").style.top=(latestposition+76+150);
document.getElementById("ltnetwork").style.top=(latestposition+95+150);
document.getElementById("ltresource").style.top=(latestposition+114+150);
document.getElementById("ltforms").style.top=(latestposition+133+150);
document.getElementById("ltimform").style.top=(latestposition+133+150);
document.getElementById("ltxform").style.top=(latestposition+152+150);

}
if(newposition1<75){
document.getElementById("ltmenu").style.visibility="hidden";
}else{
document.getElementById("ltmenu").style.visibility="visible";
}
timerID = setTimeout("ltmenumove(latestposition)",5)
}

function headermove(position1){
var newposition1
newposition1=posTop();
latestposition = parseInt(position1);
if(latestposition<newposition1){
latestposition=latestposition+1;
document.getElementById("iptheader").style.top=latestposition;
document.getElementById("pgvisual").style.top=latestposition;
document.getElementById("profile").style.top=(latestposition+68);
document.getElementById("services").style.top=(latestposition+68);
document.getElementById("booking").style.top=(latestposition+68);
document.getElementById("network").style.top=(latestposition+68);
document.getElementById("resource").style.top=(latestposition+68);
document.getElementById("forms").style.top=(latestposition+68);
document.getElementById("imform").style.top=(latestposition+68);
document.getElementById("xform").style.top=(latestposition+85);
}
if(latestposition>newposition1){
latestposition=latestposition-10;
document.getElementById("iptheader").style.top=latestposition;
document.getElementById("pgvisual").style.top=latestposition;
document.getElementById("profile").style.top=(latestposition+68);
document.getElementById("services").style.top=(latestposition+68);
document.getElementById("booking").style.top=(latestposition+68);
document.getElementById("network").style.top=(latestposition+68);
document.getElementById("resource").style.top=(latestposition+68);
document.getElementById("forms").style.top=(latestposition+68);
document.getElementById("imform").style.top=(latestposition+68);
document.getElementById("xform").style.top=(latestposition+85);
}
timerID = setTimeout("headermove(latestposition)",20)
}

function decolor(xid){
	document.getElementById(xid).style.backgroundColor="#ECE7CD";
}

function recolor(xid){
	document.getElementById(xid).style.backgroundColor="";
}

function spmenu(){
	document.getElementById("profile").style.visibility="visible";
}

function hpmenu(){
	(document.getElementById("profile").style.visibility="hidden");
}

function sltpmenu(){
	document.getElementById("ltprofile").style.visibility="visible";
}

function hltpmenu(){
	(document.getElementById("ltprofile").style.visibility="hidden");
}


function ssmenu(){
	document.getElementById("services").style.visibility="visible";
}

function hsmenu(){
	(document.getElementById("services").style.visibility="hidden");
}

function sltsmenu(){
	document.getElementById("ltservices").style.visibility="visible";
}

function hltsmenu(){
	(document.getElementById("ltservices").style.visibility="hidden");
}

function sbmenu(){
	document.getElementById("booking").style.visibility="visible";
}

function hbmenu(){
	(document.getElementById("booking").style.visibility="hidden");
}

function sltbmenu(){
	document.getElementById("ltbooking").style.visibility="visible";
}

function hltbmenu(){
	(document.getElementById("ltbooking").style.visibility="hidden");
}

function snmenu(){
	document.getElementById("network").style.visibility="visible";
}

function hnmenu(){
	(document.getElementById("network").style.visibility="hidden");
}

function sltnmenu(){
	document.getElementById("ltnetwork").style.visibility="visible";
}

function hltnmenu(){
	(document.getElementById("ltnetwork").style.visibility="hidden");
}

function srmenu(){
	document.getElementById("resource").style.visibility="visible";
}

function hrmenu(){
	(document.getElementById("resource").style.visibility="hidden");
}


function sltrmenu(){
	document.getElementById("ltresource").style.visibility="visible";
}

function hltrmenu(){
	(document.getElementById("ltresource").style.visibility="hidden");
}

function sfmenu(){
	document.getElementById("forms").style.visibility="visible";
}

function hfmenu(){
	(document.getElementById("forms").style.visibility="hidden");
}

function sltfmenu(){
	document.getElementById("ltforms").style.visibility="visible";
}

function hltfmenu(){
	(document.getElementById("ltforms").style.visibility="hidden");
}


function simmenu(){
	document.getElementById("imform").style.visibility="visible";
	document.getElementById("forms").style.visibility="visible";
}

function himmenu(){
	(document.getElementById("imform").style.visibility="hidden");
	(document.getElementById("forms").style.visibility="hidden");
}
function sxmenu(){
	document.getElementById("xform").style.visibility="visible";
	document.getElementById("forms").style.visibility="visible";
}

function hxmenu(){
	(document.getElementById("xform").style.visibility="hidden");
	(document.getElementById("forms").style.visibility="hidden");
}


function sltimmenu(){
	document.getElementById("ltimform").style.visibility="visible";
	document.getElementById("ltforms").style.visibility="visible";
}

function hltimmenu(){
	(document.getElementById("ltimform").style.visibility="hidden");
	(document.getElementById("ltforms").style.visibility="hidden");
}
function sltxmenu(){
	document.getElementById("ltxform").style.visibility="visible";
	document.getElementById("ltforms").style.visibility="visible";
}

function hltxmenu(){
	(document.getElementById("ltxform").style.visibility="hidden");
	(document.getElementById("ltforms").style.visibility="hidden");
}

var interportNW
function newWindow(){
	interportNW = window.open("uconst.htm","INTERPORT","width=350,height=100","resizable=no","scrollbars=no","status=no","menubar=no")
}

var certWD, certNM
function cert(ctf1){
if (ctf1=="iata"){
certNM=("iatacert.htm");
	certWD = window.open(certNM,"INTERPORT","width=750,height=575,scrollbars=no","resizable=no","status=no","menubar=no")
}
if (ctf1=="fiata"){
certNM=("fiatacert.htm");
	certWD = window.open(certNM,"INTERPORT","width=450,height=540,scrollbars=no","resizable=no","status=no","menubar=no")
}
if (ctf1=="ffi"){
certNM=("fficert.htm");
	certWD = window.open(certNM,"INTERPORT","width=450,height=540,scrollbars=no","resizable=no","status=no","menubar=no")
}
if (ctf1=="fmc"){
certNM=("fmccert.htm");
	certWD = window.open(certNM,"INTERPORT","width=750,height=600,scrollbars=no","resizable=no","status=no","menubar=no")
}
if (ctf1=="mto"){
certNM=("mtocert.htm");
	certWD = window.open(certNM,"INTERPORT","width=480,height=720,scrollbars=no","resizable=no","status=no","menubar=no")
}
if (ctf1=="nqaqsr"){
certNM=("nqaqsr.htm");
	certWD = window.open(certNM,"INTERPORT","width=750,height=750,scrollbars=no","resizable=no","status=no","menubar=no")
}


}

var interportNW
function timeWindow(){
	interportNW = window.open("http://www.timeticker.com","","width=700,height=600","resizable=no","scrollbars=no","status=no","menubar=no")
}


var interportNW
function curWindow(){
	interportNW = window.open("http://www.xe.com/pca/input.cgi","","width=700,height=300","resizable=no","scrollbars=no","status=no","menubar=no")
}

var interportNW
function suggestWindow(){
	interportNW = window.open("suggestsite.htm","","width=600,height=400","resizable=no","scrollbars=no","status=no","menubar=no")
}


//loading flash
function loadLogo(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='200' height='131'>");
document.write("<param name='movie' value='images/logo.swf' />");
document.write("<param name='quality' value='high' />");
document.write("<param name='wmode' value='opaque' />");
document.write("<embed src='images/logo.swf' width='200' height='131' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='opaque'></embed>");
document.write("</object>");
	}

function loadInterport(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='200' height='79'>");
document.write("<param name='movie' value='images/interport.swf' />");
document.write("<param name='quality' value='high' />");
document.write("<param name='wmode' value='opaque' />");
document.write("<embed src='images/interport.swf' width='200' height='79' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='opaque'></embed>");
document.write("</object>");
	}

function loadSlogan(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='600' height='50'>");
document.write("<param name='movie' value='images/slogan.swf' />");
document.write("<param name='quality' value='high' />");
document.write("<param name='wmode' value='opaque' />");
document.write("<embed src='images/slogan.swf' width='600' height='50' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='opaque'></embed>");
document.write("</object>");
	}


function loadName(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='600' height='41'>");
document.write("<param name='movie' value='images/name.swf' />");
document.write("<param name='quality' value='high' />");
document.write("<param name='wmode' value='opaque' />");
document.write("<embed src='images/name.swf' width='600' height='41' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='opaque'></embed>");
document.write("</object>");
	}

function loadInterportStrip(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='200' height='20'>");
document.write("<param name='movie' value='images/interportstrip.swf' />");
document.write("<param name='quality' value='high' />");
document.write("<param name='wmode' value='opaque' />");
document.write("<embed src='images/interportstrip.swf' width='200' height='20' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='opaque'></embed>");
document.write("</object>");
	}

function loadMap(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='225' height='121'>");
document.write("<param name='movie' value='images/map.swf' />");
document.write("<param name='quality' value='high' />");
document.write("<param name='wmode' value='opaque' />");
document.write("<embed src='images/map.swf' width='225' height='121' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='opaque'></embed>");
document.write("</object>");
	}
	
	
//Clock
function checkSt(){
	var lc;
	lc=location.href;
	timeCalc();
	//alert(lc);
	//alert(lc.indexOf('interportglobal.com'));
	if(lc.indexOf('http://www.interportglobal.com')==-1){
			window.location='http://www.interportglobal.com';
		}

}

var updTime
function timeCalc(){	
	var lcTime = new Date();
	var lcOffset = lcTime.getTimezoneOffset()*60000;
	var localTime = lcTime.getTime();
	var lcUTC = localTime + lcOffset;
		
	var mumUTC = lcUTC + (3600000*5.5);
	var mumTime = new Date(mumUTC);
	
	var lnUTC = lcUTC + (3600000*1);
	var lnTime = new Date(lnUTC);
	
	var nyUTC = lcUTC - (3600000*4);
	var nyTime = new Date(nyUTC);
	
	var laUTC = lcUTC - (3600000*7);
	var laTime = new Date(laUTC);
	
	var dbUTC = lcUTC + (3600000*4);
	var dbTime = new Date(dbUTC);
	
	var sgUTC = lcUTC + (3600000*8);
	var sgTime = new Date(sgUTC);
	
	var syUTC = lcUTC + (3600000*10);
	var syTime = new Date(syUTC);
	
	var mcUTC = lcUTC + (3600000*4);
	var mcTime = new Date(mcUTC);
	
	var tyUTC = lcUTC + (3600000*9);
	var tyTime = new Date(tyUTC);
	

	document.getElementById('mumTime').innerHTML=mumTime.getHours()+":"+mumTime.getMinutes()+":"+mumTime.getSeconds();
	document.getElementById('lnTime').innerHTML=lnTime.getHours()+":"+lnTime.getMinutes()+":"+lnTime.getSeconds();
	document.getElementById('nyTime').innerHTML=nyTime.getHours()+":"+nyTime.getMinutes()+":"+nyTime.getSeconds();
	document.getElementById('sgTime').innerHTML=sgTime.getHours()+":"+sgTime.getMinutes()+":"+sgTime.getSeconds();
	document.getElementById('laTime').innerHTML=laTime.getHours()+":"+laTime.getMinutes()+":"+laTime.getSeconds();
	document.getElementById('dbTime').innerHTML=dbTime.getHours()+":"+dbTime.getMinutes()+":"+dbTime.getSeconds();
	document.getElementById('syTime').innerHTML=syTime.getHours()+":"+syTime.getMinutes()+":"+syTime.getSeconds();
	document.getElementById('mcTime').innerHTML=mcTime.getHours()+":"+mcTime.getMinutes()+":"+mcTime.getSeconds();
	document.getElementById('tyTime').innerHTML=tyTime.getHours()+":"+tyTime.getMinutes()+":"+tyTime.getSeconds();
	
	updTime = setTimeout("timeCalc();",1000);
}
function stopClock(){
	clearTimeout(updTime);
}