// Start Pop Window
//	window.open('sms/sms_pop.php','winpop','status=no,scrollbars=no,width=280,height=280');
// End Pop Window


function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function MM_openBrWindow2(theURL,winName,features) {
  var docF=document.vote;
  var c = 3;
  if(docF.vcheck[0].checked) c=docF.vcheck[0].value;
  else if(docF.vcheck[1].checked) c=docF.vcheck[1].value;
  else if(docF.vcheck[2].checked) c=docF.vcheck[2].value;
  window.open(theURL + "&check=" + c,winName,features);
}

/*
	function ow(theURL,winName,features)
	{
		  window.open(theURL,winName,features);
	}
*/
/*
  var marqueewidth=700
  //Specify the marquee's height (in pixels, pertains only to NS)
  var marqueeheight=10
  var speed=3
   //var marqueecontents='<img src="images/spinning_eye.gif" border="0">&nbsp;<a href="" class="ticker">Dear Viewers We are still in our Beta Version. Our Service includes Ultimate Career Plans. including Free Career Magazine, Jobs By SMS, Free SMS Worldwide,... &nbsp;&nbsp;&nbsp;&nbsp;<img src="images/80x18global.gif" border="0"> We promise to provide a better service. We dont want to disclose  now more as our competitors are watching us like a hawk</a>'
   var marqueecontents='<!--<img src="images/tinytrumpie.gif" border="0">&nbsp;<a href=# target="_self" onClick=MM_openBrWindow(\'sms/sms_alert.php\',\'\',\'scrollbars=yes,width=550,height=410\')>&nbsp;&nbsp;Get Your Interview letter by SMS</a>-->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/80x18global.gif" border="0">&nbsp;<span class="help"><b><font color="#000099">We are flying ... We are growing ... Lets fly together</span></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--<img src="images/spinning_eye.gif" border="0">&nbsp;<a href=# target=_self class="ticker">Get Benefited With Your Control Panel</span>-->'
  if (document.getElementById)
  	document.write('<center><marquee scrollAmount='+speed+' style="width:'+marqueewidth+'">'+marqueecontents+'</marquee></center>');
// 	document.write('<br>');
*/
  function regenerate(){
  window.location.reload()
  }
  function regenerate2(){
  if (document.layers){
  setTimeout("window.onresize=regenerate",450)
  intializemarquee()
  }
  }

  function intializemarquee(){
	  document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>')
	  document.cmarquee01.document.cmarquee02.document.close()
	  thelength=document.cmarquee01.document.cmarquee02.document.width
	  scrollit()
  }

  function scrollit(){
  if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){
  document.cmarquee01.document.cmarquee02.left-=speed
  setTimeout("scrollit()",100)
  }
  else{
  document.cmarquee01.document.cmarquee02.left=marqueewidth
  scrollit()
  }
  }
  window.onload=regenerate2
   function Submit()
    {
      document.contact.submit();
    }

    function validate() {

    if (document.jobsearch.indtype.selectedIndex == '0' && trim(document.jobsearch.keyword.value) =="")
	    {
    		alert("Please specify either Functional Area or keyword to search job");
		    return false;
	    }
	    return true;
    }

	function trim(strText) {
    // this will get rid of leading spaces
    while (strText.substring(0,1) == ' ')
        strText = strText.substring(1, strText.length);

    // this will get rid of trailing spaces
    while (strText.substring(strText.length-1,strText.length) == ' ' )
        strText = strText.substring(0, strText.length-1);

	  return strText;
	}

//For displaying the Clock
function makeArray() {
    for (i = 0; i<makeArray.arguments.length; i++)
        this[i + 1] = makeArray.arguments[i];
}

function makeArray0() {
    for (i = 0; i<makeArray0.arguments.length; i++)
        this[i] = makeArray0.arguments[i];
}

function y2k(number) { return (number < 1000) ? number + 1900 : number; }

var months = new makeArray('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
var days = new makeArray0('Sun','Mon','Tue','Wed','Thu','Fri','Sat');

var today = new Date();
var day   = days[today.getDay()];
var date  = today.getDate();
var month = today.getMonth() + 1;
var year  = y2k(today.getYear());
var curDay = day + ', ' + months[month] + ' ' + date + ', '+ year;

function clock() {
//if (!document.layers && !document.all) return;
	var digital = new Date();
	var hours = digital.getHours();
	var minutes = digital.getMinutes();
	var seconds = digital.getSeconds();
	var amOrPm = "AM";

	if (hours > 11) amOrPm = "PM";
	if (hours > 12) hours = hours - 12;
	if (hours == 0) hours = 12;
	if (minutes <= 9) minutes = "0" + minutes;
	if (seconds <= 9) seconds = "0" + seconds;
	dispTime = curDay + ", " + hours + ":" + minutes + ":" + seconds + " " + amOrPm;
	if (document.layers) {
		document.layers.pendule.document.write(dispTime);
		document.layers.pendule.document.close();
	}
	else
	//if (document.all)
		pendule.innerHTML = dispTime;

	setTimeout("clock()", 1000);
	}
//  End -->