// JavaScript Document
function GGPopSlide (sld) {
	sldurl="GGWebcastSlideLarge00.asp?sld="+sld
	window.open(sldurl,'GGLargeSlide','width=720,height=540');
	
	}
	
function GGShowPage () {

	window.open("frmGGWelcome00.htm",'GGMainPage','width=790,height=580');

}

function validateregistration ()
{
	atpos = frmRegister.GGEmail.value.indexOf('@');
	if ( frmRegister.GGFullname.value == "" || frmRegister.GGOrganisation.Value == ""){
		alert("Please ensure all mandatory fields (marked with an asterisk) are completed");
		document.GGreturn = false;
	}
	else if (atpos<1) {
		alert("Please enter a valid email address");
		document.GGreturn = false;
		}
	else
	{
		document.GGreturn = true;
	}
}

function validateemail ()
{
		atpos = frmRegister.GGEmail.value.indexOf('@');
		if (atpos<1 || atpos==(val.length-1)) {
			alert("Please enter a valid email address");
			document.GGreturn = false;
			}
		else
		{
			document.GGreturn = true;
		}
}
function GG_loadngo() { //v2.0
	var thisslide = slidesdone + 1;
	preloadarray[thisslide]=new Image;
	if (slidesdone < 9) {
		preloadarray[thisslide].src=baseurlsld+"Slide0"+thisslide+".jpg";
		}
	else {
		preloadarray[thisslide].src=baseurlsld+"Slide"+thisslide+".jpg";
		}
	loadingtext.innerText=" Slide " + thisslide + " of " + slidesnumber ;
	slidesdone = slidesdone + 1;
	if (slidesdone < slidesnumber) {
	var nextslide=slidesdone + 1;
		setTimeout('GG_loadngo()',200);
	}
	else
	{
		loadingtext.innerText="";
		loadingtitle.innerText = "To confirm you wish to view the presentation, please select to view, below";
		select01.innerText = "View Audio Only (25k)"
		select02.innerText = "View Video (80k)"
		
	}
}
function GGRefreshQuestions(){
			setTimeout('self.location="GGDisplayQuestions.asp"',10000);
}