// JavaScript Document

function validate_form()
{
	
	alert(form1.test.value);
}


function getQueryString ()
{
 var querystring = new Array;
  var o = new Array;

 // parse current url into an array with the keys/values
 var q = String (document.location).split ('?')[1];

 if (!q) 
{	expand(0);
	return false;
}
 q = q. split ('&');

 for (var i = 0 ; i < q.length; i++)
 {
   // for each key/value, split them at the '='
   // and add them to the qerystring array
   var querystring = q[i].split('=');
   //querystring[o[0]] = o[1];
   
   o[i]=querystring[1]

   
 }  
// alert(o[0]);
//   alert(o[2]);

 // return the querystring
 if(q!='')
 {
	 if (parseInt(o[2])>=122)
	 	{
			expandtest(parseInt(o[0]),parseInt(o[1]),parseInt(o[2]));
		}
	else if(o[1]=='undefined')
	 	expand(parseInt(o[0]));
	else
	 	expand(parseInt(o[0]),parseInt(o[1]));

 }


 
 return querystring[1];
}

var timerObj;

function showlanguage() {
	clearTimeout(timerObj);
	document.getElementById('lang_dropdown').style.display='block';
}
	
function hidelanguage() {
	timerObj  = setTimeout("hideMenu()",200);
}

function hideMenu() {
	document.getElementById('lang_dropdown').style.display='none';
}

	
function load_language() {
	var dataStr = "<a href='javascript:;' onmouseover='showlanguage()' onmouseout='hidelanguage()'><img src='images/lan_icon.gif' border='0' align='bottom' />Select Language : English</a>"
	dataStr += "<ul class='lang_dropdown' id='lang_dropdown' onmouseover='showlanguage()' onmouseout='hidelanguage()'>"
	dataStr += "<li onmouseover='overLI(this)' onmouseout='outLI(this)' class='select_lang' id='select_chinese'><a href=\"../chinese/index.htm\">Chinese</a></li>";
	dataStr += "<li onmouseover='overLI(this)' onmouseout='outLI(this)' class='select_lang' id='select_thia'><a href=\"../thai/index.htm\">Thai</a></li>";
	dataStr += "<li onmouseover='overLI(this)' onmouseout='outLI(this)' class='select_lang' id='select_korea'><a href=\"../korean/index.htm\">Korea</a></li>";
	dataStr += "</ul>";
	document.write(dataStr);
}

function overLI(thisObj) { thisObj.className = 'lang_dropdown_over';  }
function outLI(thisObj) { thisObj.className = 'lang_dropdown_out';  }
	

function loadrightflags()
{
	document.write("<div class='global2007' id='global2007'><p><a href=\"http://www.bestemployerstudy.com\" target='_blank'><img src='images/global_best_stu.gif' border='0' alt='Global Best Employers Study' /></a></p></div><div class='china2007' id='china2007'><p><a href=\"hewitt_be_china2009.htm\"><img src='images/ch_result.gif' border='0' alt='China Result 2007' /></a></p></div><div class='hongkong2007' id='hongkong2007'><p><a href=\"hewitt_be_hongkong2009.htm\"><img src='images/hk_result.gif' border='0' alt='Hong Kong Result 2007'/></a></p></div><div class='india2007' id='india2007'><p><a href=\"hewitt_be_india2009.htm\"><img src='images/in_result.gif' border='0' alt='India Result 2007'/></a></p></div><div class='japan2007' id='japan2007'><p><a href=\"hewitt_be_japan2009.htm\"><img src='images/jp_result.gif' border='0' alt='Japan Result 2007'/></a></p></div><div class='korea2007' id='korea2007'><p><a href=\"hewitt_be_korea2009.htm\"><img src='images/korea_result.gif' border='0' alt='Korea Result 2007'/></a></p></div><div class='malasiya' id='malasiya'><p><a href=\"hewitt_be_malasiya2009.htm\"><img src='images/malasiya_result.gif'  border='0' alt='Singapore Result 2007'/></a></p></div><div class='singapore' id='singapore'><p><a href=\"hewitt_be_singapore2009.htm\"><img src='images/singapre_result.gif' border='0' alt='Singapore Result 2007'/></a></p></div><div class='malasiya' id='malasiya'><p><a href=\"hewitt_be_thai2009.htm\"><img src='images/thai_result.gif'  border='0' alt='Thai Result 2009'/></a></p></div>");
	
	}
	

