var frm = document.frm_contact;
function check_contact_infomation() {		
	if (frm.txt_fullname.value==""){
		alert("Please type your name!");
		frm.txt_fullname.focus();
		return false;
	}
	
	if (frm.txt_email.value==""){
		alert("Please type your email!");
		frm.txt_email.focus();
		return false;
	}	
	
	if (!is_email(frm.txt_email.value)){
		alert("Your email input is incorrect!");
		frm.txt_email.focus();
		return false;
	}

	if (frm.txt_message.value==""){
		alert("Please type your mail content !");
		frm.txt_message.focus();
		return false;
	}	
	return true;
}

function reset_contact_infomation() {		
	frm.txt_fullname.value="";
	frm.txt_email.value="";
	frm.txt_message.value="";
	frm.txt_fullname.focus();	
	return false;
}
/*bcthong : google map api*/
/*
var centerLatitude = 10.770547842358717;
var centerLongitude = 106.6920679807663;  
*/ 
/*Update Khoa: 20/05/2010 */
var centerLatitude = 10.7913211;
var centerLongitude = 106.7001092;

var startZoom = 18;
var map;
function init_google_map_mss(){
	if (GBrowserIsCompatible()){
		map = new GMap2(document.getElementById("mapmss"));
		var location = new GLatLng(centerLatitude,centerLongitude);
		
		map.setCenter(location,startZoom);
		map.addControl(new GMapTypeControl());
		map.addControl(new GSmallMapControl());
		
		var icon = new GIcon();
		
		icon.image = "img/mss_map_icon.png";
		icon.iconSize = new GSize(30,30);
		icon.iconAnchor = new GPoint(15,25);
		icon.infoWindowAnchor = new GPoint(15,15);
		
		var marker = new GMarker(new GLatLng(centerLatitude, centerLongitude),icon);
		
		GEvent.addListener(marker,"click",function(){
			marker.openInfoWindowHtml("<b>Mobile Solution Services, JSC </b> <br/>  	22-24 Nguyễn Văn Thủ, Ward Đa Kao, District 1, HCMC <br/>	Vietnam.");
		});
		
		map.addOverlay(marker);
	}
	
}
window.onload = init_google_map_mss;
