
// For PopUp
function popUp(URL, W, H, S) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=" + S + ",location=0,statusbar=0,menubar=0,resizable=0,width=" + W + ",height=" + H +",left = 315,top = 262');");
}
// For Quick Jump Menus

//Check form
function checkrequired(form) {
	var pass = true;
	for(i = 0; i < form.length; i++) {
		var tempobj = form.elements[i];
		if(tempobj.alt == "required" || tempobj.title == "required") {
			if(tempobj.value == '') {
				pass = false;
				break;
			}
		}
	}
	if(!pass) {
		alert("Please enter the required information.");
		tempobj.focus(); // set focus to missing field
		return false;
	}
	else { return true; } 
}


sniffBrowsers();

JM_Navigation = new menuBar('JM_Navigation',616, 'horizontal', '#ffffff', null);
JM_Navigation.addLabel(null, 'Home', 1, 100, '#B1D323', '#B1D323', 'index.htm', 'center', 'self');
JM_Navigation.addLabel(null, 'About Us', 2, 100, '#B1D323', '#B1D323', 'about_us.htm', 'center', 'self');
JM_Navigation.addLabel(null, 'Latest News', 3, 100, '#B1D323', '#B1D323', 'latest_news.htm', 'center', 'self');
JM_Navigation.addLabel(null, 'Apps & Services', 4, 150, '#B1D323', '#B1D323', 'index.htm','center', 'self');
JM_Navigation.addLabel(null, 'Partners', 5, 100, '#B1D323', '#B1D323', 'partners.htm', 'center', 'self');
JM_Navigation.addLabel(null, 'Awards', 6, 100, '#B1D323', '#B1D323', 'awards.htm', 'center', 'self');
JM_Navigation.addLabel(null, 'Contact Us', 5, 100, '#B1D323', '#B1D323', 'contact_us.htm', 'center', 'self');
JM_Navigation.addLabel(null, 'Just IT', 5, 100, '#B1D323', '#B1D323', 'http://www.justit.com.my', 'center', 'self');
JM_Navigation.height = 14;

menus[1] = new menu(150, 'vertical', '#333333', '#333333');
menus[1].height = 16;

menus[2] = new menu(150, 'vertical', '#333333', '#333333');
menus[2].height = 16;

menus[3] = new menu(150, 'vertical', '#333333', '#333333');
menus[3].height = 16;

menus[4] = new menu(150, 'vertical', '#333333', '#333333');
menus[4].height = 16;
menus[4].addItem(null, 'iPhone App Development', null, 135, '#ffffff', '#cccccc', 'iphone_app_development.htm', 'left', 'self');
menus[4].addItem(null, 'Mobile Fantasy World Cup 2010', null, 135, '#ffffff', '#cccccc', 'mobile_fantasy_world_cup_2010.htm', 'left', 'self');
menus[4].addItem(null, 'WAP Site Development', null, 135, '#ffffff', '#cccccc', 'mobile_wap_portal.htm', 'left', 'self');
menus[4].addItem(null, 'Virtual Girlfriend', null, 135, '#ffffff', '#cccccc', 'virtual_girlfriend.htm', 'left', 'self');
menus[4].addItem(null, 'Mobile Dating', null, 135, '#ffffff', '#cccccc', 'mobile_dating.htm', 'left', 'self');
menus[4].addItem(null, 'Mobile Chat', null, 135, '#ffffff', '#cccccc', 'mobile_chat.htm', 'left', 'self');
menus[4].addItem(null, 'Virtual Chat', null, 135, '#ffffff', '#cccccc', 'virtual_chat.htm', 'left', 'self');
menus[4].addItem(null, 'Lottery Number Predictions', null, 135, '#ffffff', '#cccccc', 'lottery_number.htm', 'left', 'self');
menus[4].addItem(null, 'Mobile Fortune Teller', null, 135, '#ffffff', '#cccccc', 'mobile_fortune_teller.htm', 'left', 'self');
menus[4].addItem(null, 'Japanese Name Generator', null, 135, '#ffffff', '#cccccc', 'japanese_name_gen.htm', 'left', 'self');
menus[4].addItem(null, 'Mobile Novel', null, 135, '#ffffff', '#cccccc', 'mobile_novel.htm', 'left', 'self');
menus[4].addItem(null, 'Mobile Astrology', null, 135, '#ffffff', '#cccccc', 'mobile_astrology.htm', 'left', 'self');
menus[4].addItem(null, 'Emperor Quest', null, 135, '#ffffff', '#cccccc', 'emperor_quest.htm', 'left', 'self');
menus[4].addItem(null, 'Guess The Football Star', null, 135, '#ffffff', '#cccccc', 'guess_football_star.htm', 'left', 'self');
menus[4].addItem(null, 'SMS & WAP Contest', null, 135, '#ffffff', '#cccccc', 'sms_wap_contest.htm', 'left', 'self');
menus[4].writeMenu();

menus[5] = new menu(150, 'vertical', '#333333', '#333333');
menus[5].height = 16;

menus[6] = new menu(150, 'vertical', '#333333', '#333333');
menus[6].height = 16;

menus[1].align='left';
menus[2].align='left';
menus[3].align='left';
menus[4].align='left';
menus[5].align='left';
menus[6].align='left';
