<!--


function openNugget(url){
	viewWindow = window.open(url, 'eLearning', 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=1,height=1');
	if (viewWindow != null && !viewWindow.closed){
		viewWindow.resizeTo(680,570);
		viewWindow.moveTo((screen.width-680)/2,(screen.height-570)/5);
		viewWindow.focus();
	}
}



function StartAbout(thefilename)
{
SmallWin=window.open(thefilename, 'SmallWin','toolbar=no,scrollbars=yes,resizable=yes,menubar=no,width=410,height=300');
SmallWin.window.focus()

}



var css_browser_selector = function() {
	var 
		ua=navigator.userAgent.toLowerCase(),
		is=function(t){ return ua.indexOf(t) != -1; },
		h=document.getElementsByTagName('html')[0],
		b=(!(/opera|webtv/i.test(ua))&&/msie (\d)/.test(ua))?('ie ie'+RegExp.$1):is('gecko/')? 'gecko':is('opera/9')?'opera opera9':/opera (\d)/.test(ua)?'opera opera'+RegExp.$1:is('konqueror')?'konqueror':is('applewebkit/')?'webkit safari':is('mozilla/')?'gecko':'',
		os=(is('x11')||is('linux'))?' linux':is('mac')?' mac':is('win')?' win':'';
	var c=b+os+' js';
	h.className += h.className?' '+c:c;
}();




function validateContact(form)
 { 
var error="";
// empty ****************************************


if (document.form1.name.value=="")
 error+="...Enter your Name.\n";

if (document.form1.email.value=="")
 error+="...Enter your Email.\n";


if(error !="")
{
alert("Please correctly fill these fields:\n" + error);
return false;
}

if(document.form1.email.value.indexOf('@') == -1 || document.form1.email.value.indexOf('.') == -1)
 error+="...A valid email address\n";

if(error !="")
{
alert("please correctly fill these fields:\n" + error);
return false;
}




return true;
 } // end function
 

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}





// -->