<!-- Begin
function JSClock() {
   var time = new Date()
   var hour = time.getHours()
   var minute = time.getMinutes()
   var second = time.getSeconds()
   var day = time.getDay()
   var month = time.getMonth()

	if(day==0) dayName="Sunday"
	else if(day==1) dayName="Monday"
	else if(day==2) dayName="Tuesday"
	else if(day==3) dayName="Wednesday"
	else if(day==4) dayName="Thursday"
	else if(day==5) dayName="Friday"
	else dayName="Saturday"
	
	if(month==0) monthName="January"
	else if(month==1) monthName="February"
	else if(month==2) monthName="March"
	else if(month==3) monthName="April"
	else if(month==4) monthName="May"
	else if(month==5) monthName="June"
	else if(month==6) monthName="July"
	else if(month==7) monthName="August"
	else if(month==8) monthName="September"
	else if(month==9) monthName="October"
	else if(month==10) monthName="November"
	else monthName="December"

	var theDate = dayName + ", " + monthName + " " + time.getDate()
	   
   var temp = "" + ((hour > 12) ? hour - 12 : hour)
   if (hour == 0)
      temp = "12";
   temp += ((minute < 10) ? ":0" : ":") + minute
   temp += (hour >= 12) ? " P.M." : " A.M."
   return theDate + "&nbsp;"; // + ", " + temp
} 


function winPop(url,w,h,myname){
showme=window.open(url,myname,'width='+w+',height='+h+',top=100,left=150,resizable=yes,scrollbars=no,menubar=no,toolbar=no,status=no,location=no')}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

var url = document.location.toString();
var title = document.title;
function bookmark () {
        if (document.all && parseInt(navigator.appVersion) >= 4) {
          window.external.AddFavorite(url,title);
        } else if (navigator.appName == "Netscape") {
          alert("You must press CTRL-D to bookmark this page");
        } 
}

	function isValidEmail(text)
	{
		var emailsArray = text.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi);
		if (!emailsArray) return -1; 
	}
	
function checkEmailAddress(text) {
		var goodEmail = text.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.cc)|(\.tv)|(\.org)|(\..{2,2}))$)\b/gi);
		if (!goodEmail) return -1;
	}

function setColor(el, bg) {
  if (el.style) el.style.backgroundColor = bg;
}

function chk(){
var bgBad = "#FFFF99";

	if(document.frm.nm.value ==''){
		alert('Please enter your name.');
		setColor(document.frm.nm, bgBad);
		document.frm.nm.focus();
		return false;
}
	if(document.frm.email.value ==''){
		alert('Please enter your email.');
		setColor(document.frm.email, bgBad);
		document.frm.email.focus();
		return false;
}
 if(checkEmailAddress(document.frm.email.value)){
		alert('Email Error!\n\nPlease check the email address.');
		setColor(document.frm.email, bgBad);
		document.frm.email.select();
		return false;
}
	if(document.frm.requirement.value ==''){
		alert('Please enter your requirement.');
		setColor(document.frm.requirement, bgBad);
		document.frm.requirement.focus();
		return false;
}
}

function free(){
var bgBad = "#FFFF99";

	if(document.frm.Name.value ==''){
		alert('Please enter your name.');
		setColor(document.frm.Name, bgBad);
		document.frm.Name.focus();
		return false;
}
	if(document.frm.Email.value ==''){
		alert('Please enter your email.');
		setColor(document.frm.Email, bgBad);
		document.frm.Email.focus();
		return false;
}
 if(checkEmailAddress(document.frm.Email.value)){
		alert('Email Error!\n\nPlease check the email address.');
		setColor(document.frm.Email, bgBad);
		document.frm.Email.select();
		return false;
}
	if(document.frm.City.value ==''){
		alert('Please enter your City.');
		setColor(document.frm.City, bgBad);
		document.frm.City.focus();
		return false;
}
if(document.frm.Country.value ==''){
		alert('Please enter your Country.');
		setColor(document.frm.Country, bgBad);
		document.frm.Country.focus();
		return false;
}
if(document.frm.Phone.value ==''){
		alert('Please enter your Phone.');
		setColor(document.frm.Phone, bgBad);
		document.frm.Phone.focus();
		return false;
}
if(document.frm.Experience.value ==''){
		alert('Please select your Experience.');
		setColor(document.frm.Experience, bgBad);
		document.frm.Experience.focus();
		return false;
}
if(document.frm.Skill.value ==''){
		alert('Please select your Skill.');
		setColor(document.frm.Skill, bgBad);
		document.frm.Skill.focus();
		return false;
}
}

/// ==================
NewImg1 = new Array (
"images/web1.jpg",
"images/web2.jpg",
"images/web3.jpg",
"images/web4.jpg",
"images/web5.jpg",
"images/web6.jpg",
"images/web7.jpg",
"images/web8.jpg",
"images/web9.jpg",
"images/web10.jpg",
"images/web11.jpg",
"images/web12.jpg",
"images/web13.jpg",
"images/web14.jpg",
"images/web15.jpg",
"images/web16.jpg",
"images/web17.jpg",
"images/web18.jpg",
"images/web19.jpg",
"images/web20.jpg",
"images/web21.jpg",
"images/web22.jpg",
"images/web23.jpg",
"images/web24.jpg",
"images/web25.jpg"
);
var ImgNum1 = 0;
var ImgLength1 = NewImg1.length - 1;
var delay1 = 3000;
var lock1 = false;
var run1;
function chgImg1(direction) {
if (document.images) {
ImgNum1 = ImgNum1 + direction;
if (ImgNum1 > ImgLength1) {
ImgNum1 = 0;
}
if (ImgNum1 < 0) {
ImgNum1 = ImgLength1;
}
document.slideshow1.src = NewImg1[ImgNum1];
   }
}
function auto1() {
if (lock1 == true) {
lock1 = false;
window.clearInterval(run1);
}
else if (lock1 == false) {
lock1 = true;
run1 = setInterval("chgImg1(1)", delay1);
   }
}
// ----------------------------------
NewImg2 = new Array (
"images/logo1.jpg",
"images/logo2.jpg",
"images/logo3.jpg"
);
var ImgNum2 = 0;
var ImgLength2 = NewImg2.length - 1;
var delay2 = 3000;
var lock2 = false;
var run2;
function chgImg2(direction) {
if (document.images) {
ImgNum2 = ImgNum2 + direction;
if (ImgNum2 > ImgLength2) {
ImgNum2 = 0;
}
if (ImgNum2 < 0) {
ImgNum2 = ImgLength2;
}
document.slideshow2.src = NewImg2[ImgNum2];
   }
}
function auto2() {
if (lock2 == true) {
lock2 = false;
window.clearInterval(run2);
}
else if (lock2 == false) {
lock2 = true;
run2 = setInterval("chgImg2(1)", delay2);
   }
}
// ----------------------------------------------------------------

//  End -->
