<!--


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();
	}
}

//Opens a new pop-up window and plays the Exercise...
function openExercise(url){
	viewWindow = window.open(url, 'eLearning', 'statusbar=no,resizable=no,toolbar=no,scrollbars=no,width=1,height=1');
	if (viewWindow != null && !viewWindow.closed){
		viewWindow.resizeTo(650,545);
		viewWindow.moveTo((screen.width-650)/2,(screen.height-545)/5);
		viewWindow.focus();
	}
}


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_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_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];}
}

/*
CSS Browser Selector v0.4.0 (Nov 02, 2010)
Rafael Lima (http://rafael.adm.br)
http://rafael.adm.br/css_browser_selector
License: http://creativecommons.org/licenses/by/2.5/
Contributors: http://rafael.adm.br/css_browser_selector#contributors
*/
function css_browser_selector(u){var ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1},g='gecko',w='webkit',s='safari',o='opera',m='mobile',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3.6')?g+' ff3 ff3_6':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('blackberry')?m+' blackberry':is('android')?m+' android':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?m+' j2me':is('iphone')?m+' iphone':is('ipod')?m+' ipod':is('ipad')?m+' ipad':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win'+(is('windows nt 6.0')?' vista':''):is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);



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 validateQuote(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 (document.form1.phone.value=="")
 error+="...Enter your Phone Number.\n";




if (document.form1.company.value=="")
 error+="...Enter your Company Name.\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
 



// -->
