	blog_on = new Image(33,16);
	blog_on.src = "/images/nav/blog-over.png";
	blog_off = new Image(33, 16);
	blog_off.src = "/images/nav/blog.png";
	
	search_on = new Image(104,16);
	search_on.src = "/images/nav/search-over.png";
	search_off = new Image(104, 16);
	search_off.src = "/images/nav/search.png";

	inter_on = new Image(65, 16);
	inter_on.src = "/images/nav/inter-over.png";
	inter_off = new Image(65, 16);
	inter_off.src = "/images/nav/inter.png";

 	training_on = new Image(57, 16);
	training_on.src = "/images/nav/training-over.png";
	training_off = new Image(57, 16);
	training_off.src = "/images/nav/training.png";

	about_on = new Image(63, 16);
	about_on.src = "/images/nav/about-over.png";
	about_off = new Image(63, 16);
	about_off.src = "/images/nav/about.png";
	
	join_on = new Image(98, 16);
	join_on.src = "/images/nav/join-over.png";
	join_off = new Image(98, 16);
	join_off.src = "/images/nav/join.png";
	
	contact_on = new Image(75, 16);
	contact_on.src = "/images/nav/contact-over.png";
	contact_off = new Image(75, 16);
	contact_off.src = "/images/nav/contact.png";
		
	newsletters_on = new Image(78, 16);
	newsletters_on.src = "/images/nav/newsletters-over.png";
	newsletters_off = new Image(78, 16);
	newsletters_off.src = "/images/nav/newsletters.png";
	
	facebook_on = new Image(20, 20);
	facebook_on.src = "/images/social_media/facebook-on.png";
	facebook_off = new Image(20, 20);
	facebook_off.src = "/images/social_media/facebook.png";
	
	linkedin_on = new Image(20, 20);
	linkedin_on.src = "/images/social_media/linkedin-on.png";
	linkedin_off = new Image(20, 20);
	linkedin_off.src = "/images/social_media/linkedin.png";
	
	twitter_on = new Image(20, 20);
	twitter_on.src = "/images/social_media/twitter-on.png";
	twitter_off = new Image(20, 20);
	twitter_off.src = "/images/social_media/twitter.png";
		
	youtube_on = new Image(49, 20);
	youtube_on.src = "/images/social_media/youtube-on.png";
	youtube_off = new Image(49, 20);
	youtube_off.src = "/images/social_media/youtube.png";
	
	function nav_courses()
	   {
	   var w = document.myform.courses_list.selectedIndex;
	   var url_add = document.myform.courses_list.options[w].value;
	   window.location.href = url_add;
	   }
	
	function nav_academy()
	   {
	   var w = document.myform.academy_list.selectedIndex;
	   var url_add = document.myform.academy_list.options[w].value;
	   window.location.href = url_add;
	   }   
	
	var whitespace = " \t\n\r";
	function isEmpty(field, alerttxt)
	{
		with (field) {
		var i;
		if((value == null) || (value.length == 0))
		{
		window.alert(alerttxt);
		return true;
		}

		for(i = 0; i < value.length; i++)
		{
			var c = value.charAt(i);
			if(whitespace.indexOf(c) == -1)
			{
				return false;
			}
		}
		window.alert(alerttxt);
		return true;
		}
	}
	
	function isAlpha(field, alerttxt, minimum)
	{
		var count;
		var c;
		with (field) {
		if(value.length < minimum)
		{
			window.alert(alerttxt);
				return false;
		}
		for(count = 0; count < value.length; count++)
		{
			c = value.charCodeAt(count);
			if(c < 65)
			{
				if(c == 32)
				{
					continue;
				}
				window.alert(alerttxt);
				return false;
			}
			if((c > 90) && (c < 97))
			{
				window.alert(alerttxt);
				return false;
			}
			if(c > 122)
			{
				window.alert(alerttxt);
				return false;
			}
		}
		return true;
		}
	}

	function validate_email(field,alerttxt)
	{
		with (field)
		{
			apos=value.indexOf("@")
			dotpos=value.lastIndexOf(".")
			if (apos<1||dotpos-apos<2) {
				window.alert(alerttxt);
				return false;
			} else {
				return true;
			}
		}
	}
	
	function validate_login_form(thisform)
	{
		with (thisform)
		{
			if (validate_email(user,"Invalid email format")==false) {
				user.focus();
				return false;
				
			} else if (isEmpty(user, "Email address must be filled")) {
				user.focus();
				return false;
				
			} else if (isEmpty(pass, "Password must be filled")) {
				pass.focus();
				return false;
				
			} else if (isEmpty(loginType, "Please select login type")) {
				loginType.focus();
				return false;
			}
			decide_action();
		}	
	}
	
	function decide_action()
	{	
		if(document.frmLoginType.loginType.selectedIndex == 1) {
			document.frmLoginType.action="turbo/turbo-login.php";
		}
		else if(document.frmLoginType.loginType.selectedIndex == 4)
		{
			document.frmLoginType.email.value = document.frmLoginType.user.value;
			document.frmLoginType.action="support/login";
		}
		else if(document.frmLoginType.loginType.selectedIndex == 5)
		{
			document.frmLoginType.action="intranet/";
		}
		else
		{
			document.frmLoginType.action="http://portal.hostec.com/login_validation.php";
		}

		document.frmLoginType.submit();
	}
	
	function validate_pass_form(loginType)
	{
		if (isEmpty(loginType, "Please select login type from selection above")) {
			loginType.focus();
			return false;
		}
		if (loginType.value == "job seeker") {
			window.open("turbo/turbo-password.html", "");
		} else if (loginType.value == "student") {
			window.open("http://portal.hostec.com/index.php?forgotPassword=1", "");
		} else if (loginType.value == "partner") {
			window.open("http://portal.hostec.com/index.php?forgotPassword=1", "");
		} else {
			
		}
	}
	
	function validate_email_form(thisform)
	{
		with (thisform)
		{
			if (isEmpty(fromName, "Your name must be filled")) {
				fromName.focus();
				return false;
				
			} else if (!isAlpha(fromName, "Invalid name format!", 0)) {
				fromName.focus();
				return false;
				
			} else if (validate_email(fromEmail,"Your email format is invalid")==false) {
				fromEmail.focus();
				return false;
				
			} else if (isEmpty(friendName, "Friend's name must be filled")) {
				friendName.focus();
				return false;
			
			} else if (!isAlpha(friendName, "Invalid name format!", 0)) {
				friendName.focus();
				return false;
				
			} else if (validate_email(friendEmail,"Friend email format is invalid")==false) {
				friendEmail.focus();
				return false;
				
			} else if (isEmpty(msg, "Message must be fiiled")) {
				msg.focus();
				return false;
			}
		}
	}
	
	function popup(url) {
		var width=560;
		var height=560;
		var left=(screen.width-width)/2;
		var top=(screen.height-height)/2;
		var params='width='+width+', height='+height;
		params+=', top='+top+', left='+left;
		params+=', directories=no';
		params+=', location=no';
		params+=', menubar=no';
		params+=', resizable=no';
		params+=', scrollbars=no';
		params+=', status=no';
		params+=', toolbar=no';
		win=window.open(url,"",params);
		if(window.focus) { win.focus(); }
		return false;
	}
	
	function validate_subscribe_form(thisform)
	{
		with (thisform)
		{
			if (isEmpty(name, "Your name must be filled")) {
				name.focus();
				return false;
				
			} else if (!isAlpha(name, "Invalid name format!", 0)) {
				name.focus();
				return false;
				
			} else if (validate_email(djlljk,"Your email format is invalid")==false) {
				djlljk.focus();
				return false;
			}
		}
	}
	
	function validate_unsubscribe_form(thisform)
	{
		with (thisform)
		{
			if (validate_email(email,"Your email format is invalid")==false) {
				email.focus();
				return false;
			}
		}
	}
	
/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}
