	var now = new Date()
	var hrs = now.getHours()
	var min = now.getMinutes()
	var user = -(now.getTimezoneOffset() / 60)

	var day = new Date();
	var currentTimeZoneOffsetInHours = - day.getTimezoneOffset()/60;

	var ClockId = null;
	var ClockRunning = false;

	function TOfunc(){
		var timezone = document.clock.cityname[document.clock.cityname.selectedIndex].value;
		
		var today = new Date();
		var hours = today.getHours();
		var minutes = today.getMinutes();
		var secs = today.getSeconds();
		hours += parseInt(timezone) - currentTimeZoneOffsetInHours;
		today.setHours(hours);
		ST = today.toString();
		ST = ST.substring(4,10) + ". " + ST.substring(28,34) + ". " + ST.substring(10,19)
		document.clock.city.value = ST;
		ClockId = window.setTimeout( "TOfunc()", 1000 );
		ClockRunning = true;
	}

	function stopClock(){
		if(ClockRunning) clearTimeOut(ClockId); ClockRunning = false;
	}

	function citytime(){
		stopClock;
		TOfunc();
	}

	function checkform() {		
		if (!DigitChk(document.quickcargo.quickno.value)) {
			alert("Do not input \"space\" and \"hypen(-)\".");
			document.quickcargo.quickno.focus();
			return;
		}
		
		document.quickcargo.submit();
	}

	function DigitChk(str){
		if(String != ""){
			count = 0;
			cp_string = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";

			for(i = 0 ; i < 65 ; i++){
				for(j = 0 ; j < str.length ; j++){
					if(cp_string.charAt(i) == str.charAt(j)){
						count++;
					}
				}
			}

			if(count == str.length){
				return true;
			}else{
				return false;
			}
		}
		return true;
	}