




		function show_lables( pFileName, pTitle, pCaption) {
		
		
var photoWin = null    // use this when referring to pop-up window
var winpressCont = 0
var winNome = "photoWin"

// specify window parameters document.body.clientHeight window.innerWidth

var wi=document.body.clientWidth;
var hi=document.body.clientHeight;
var wit=screen.availWidth;
var hit=screen.availHeight -60;

		winNome = "photoWin" + winpressCont++ //unique name for each pop-up window
  closePhotoWin() 
	
  photoWin = window.open( "", "winNome","width=600,height="+hit+",status,scrollbars,resizable,left=0,top=0");



// 	
  photoWin.document.write('<html><head><title>' + pTitle + '</title></head>');	
  photoWin.document.write('<BODY BGCOLOR=#FFFFFF TEXT=#FFFFCC LINK=#33CCFF VLINK=#FF6666>');
  photoWin.document.write('<center>');
  photoWin.document.write('<font size=+2 face="arial,helvetica"  color=#000000><b>' + pCaption + '</b></font><br><br>');
  photoWin.document.write('<img src="' + pFileName + '">');
  photoWin.document.write('<p></font></body></html>');
  photoWin.document.close();	
	// If we are on NetScape, we can bring the window to the front
	if (navigator.appName.substring(0,8) == "Netscape") 
photoWin.focus();
}



function closePhotoWin(){    // close pop-up window if it is open 
  if (navigator.appName != "Microsoft Internet Explorer" 
      || parseInt(navigator.appVersion) >=4) //do not close if early IE
    if(photoWin != null) if(!photoWin.closed) photoWin.close() 
  }


// Distributer Check Feild Sg

function bookLocator(){
  var loc = 0;
  var codeString = new RegExp("\\d{5}", "g"); 
    if ((document.locator.postkey.value=="")||document.locator.postkey.value.search(codeString) == -1){
     loc=1;
     window.alert("Attention, tout code postal comprend 5 chiffres\t\t\n");
		 document.locator.postkey.focus();
     return;
  }
  if (loc==0){
   document.locator.submit();
     }
  return;
}


 // Search Check Feild Sg
 
function replaceChars(entry) {
out = "'"; // replace this
add = ""; // with this
temp = "" + entry; // temporary holder

while (temp.indexOf(out)>-1) {
pos= temp.indexOf(out);
temp = "" + (temp.substring(0, pos) + add + 
temp.substring((pos + out.length), temp.length));
}
 resche(temp);
}
 
 



function resche(doit){
  var resc =0;
		  var sesrString =  /^[_0-9 a-z-éçèâàäùüîïûùµêëöô]*[_0-9 a-z-éçèâàäùüîïûùµêëöô]$/i;
      if ((doit=="")|| doit.search(sesrString) == -1){
     resc=1;
     window.alert("Pour rechercher...\n* il faut au moins un critère de recherche\n* pas de guillants\t\t\n");
		 document.resch.searchakey.focus();
     return;
  }
  if (resc==0){
   document.resch.submit();
     }
  return;
}



var isNav, isIE, intervalID3, intervalID4,flashTimer
var coll = ""
var styleObj = ""

if (parseInt(navigator.appVersion) >= 4){
if (navigator.appName =="Netscape") {
	  isNav= true
	}else{
	  isIE= true
	  coll = "all."
	  styleObj = ".style"
	}
}


//Utility that reloads the page if the user resizes the page

function handleResize(){
	location.reload()
	return false
}
if (isNav){
	window.captureEvents(Event.RESIZE)
	window.onresize= handleResize
}




function run(url) {
    setTimeout("top.location.href='" + url + "'",1500);
}



 

 
 
 
 
 
 
<!--******************** registration form check* *********************-->




function swimfields(){


  var feas = 0;
  var emerString =  /^([_0-9a-z\.-])+@([_0-9a-z\.-])+[a-z]{2,3}$/i;
  var tootString =  /^[_0-9 a-z-âéçè'àùëöô]*[_0-9 a-z-âéçè'àùëöô]$/i;
  var passdString = /^[_0-9a-z]*[_0-9a-z]$/i;
  var phonedString = /^[_0-9 -]*[_0-9/ -]$/i; 




  if (document.swimform.name.value == ""){
     feas=1;
     window.alert("Your name is required to send this form.");
		 document.swimform.name.focus();
     return;
  }
	
	  if (document.swimform.lastname.value == ""){
     feas=1;
     window.alert("Your last name is required to send this form.");
     document.swimform.lastname.focus();
     return;
  }
	
	
			if (document.swimform.age.value == "noage"){
     feas=1;
     window.alert("Please include your age !");
		 document.swimform.age.focus();
     return;
  }
	

	    if (document.swimform.email.value.search(emerString) == -1){
     feas=1;
     window.alert("Your email address is required to submit this information to our emailing list.\t\t\n");
     document.swimform.email.focus();
     return;
  }
	
	 if ((document.swimform.telephone.value.search(phonedString) == -1)){
     feas=1;
     window.alert("Please enter a a contact telephone number.");
     document.swimform.telephone.focus();
     return;
  }
	
  if (document.swimform.street.value == ""){
     feas=1;
     window.alert("Your address is required to send your request.");
     document.swimform.street.focus();
     return;
  }
	
	
		  if (document.swimform.town.value== ""){
     feas=1;
     window.alert("The web guru says... Please include a suburb  because its just simply NEEDED !!");
     document.swimform.town.focus();
     return;
  }
  
	
	 if (document.swimform.state.value == ""){
     feas=1;
     window.alert("You must select a state to submit this form.");
     document.swimform.state.focus();
     return;
  }
 
	  if ((document.swimform.postcode.value.search(phonedString) == -1)){
     feas=1;
     window.alert("Mate! A Postcode would be good! ");
     document.swimform.postcode.focus();
     return;
  }

 
		  if (feas==0){
			 document.swimform.submit();

   }
  
	
  return;
}





<!--******** open Print windows *************** -->
<!--******** open Print windows *************** -->


function openPress(pPresspic) {

// specify window parameters document.body.clientHeight window.innerWidth


var witPress=650;
var hitPress=550;
  PressPag = window.open("", "photo","width="+witPress+",height="+hitPress+",status,scrollbars,resizable,left=0,top=0");

// 	
   PressPag.document.write('<html><head><title> Tathra W2W Le Presse</title>');	
	 PressPag.document.write('<style type="text/css"><!-- ');
	 PressPag.document.write('body{scrollbar-base-color: #ffffff; scrollbar-shadow-color: #dddddd; scrollbar-highlight-color: #eeeeee; scrollbar-3dlight-color: #aaaaaa;scrollbar-darkshadow-color: #aaaaaa; scrollbar-track-color: #dddddd;  scrollbar-arrow-color: #aaaaaa;background-color:#ffffff; } ');
	 PressPag.document.write(' //--></style>');
	 PressPag.document.write('</head>');	
   PressPag.document.write('<BODY BGCOLOR=#000000 TEXT=#FFFFCC LINK=#33CCFF VLINK=#FF6666>');
   PressPag.document.write('<center>');
   PressPag.document.write('<img src="' + pPresspic + '" alt="' + pPresspic + '"><p>');
   PressPag.document.write('<a href="#" onClick="self.close()">Close</a><br>');  
   PressPag.document.write('<p></font></body></html>');
   PressPag.document.close();	
	

// If we are on NetScape, we can bring the window to the front
	if (navigator.appName.substring(0,8) == "Netscape") 
 PressPag.focus();
}









<!--******************** join email form check* *********************-->



function joinemail(){


  var em = 0;
  var emailString =  /^([_0-9a-z\.-])+@([_0-9a-z\.-])+[a-z]{2,3}$/i;
  var textString =  /^[_0-9 a-z-âéçè'àùûêëöô]*[_0-9 a-z-âéçè'àùûêëöô]$/i;

  if (document.emaildiff.prenom.value.search(textString) == -1){
     em=1;
     window.alert("Oh !!! Have you forgotten your first name ?!?!\t\t\n");
     document.emaildiff.prenom.focus();
     return;
  }



  if (document.emaildiff.nom.value.search(textString) == -1){
     em=1;
     window.alert("Oh !!! Have you fotten your last name ?!?!\t\t\n");
     document.emaildiff.nom.focus();
     return;
  }
    if (document.emaildiff.email.value.search(emailString) == -1){
     em=1;
     window.alert("Verify your email address ! The Web Guru is watching ! \t\n");
     document.emaildiff.email.focus();
     return;
  }

   
  if (em==0){


   document.emaildiff.submit();
   
  }
  return;
}








<!-- ************** Information pop up window ************* -->



var infoWin = null    // use this when referring to pop-up window
var winCount = 0
var winName = "infoWin"


function openregforminfo(display,infoplease,typeofinfo){

winName = "infoWin" + winCount++ 
  closeinfoWin()   

  if(! window.focus)
    return;


  var infoWin=window.open("main/regforminfo.php?in="+ typeofinfo +"&ipl="+ infoplease +"", "winName",'height=240,width=240,dependent=yes,scrollbars=yes');
  infoWin.focus();
  display.target=infoplease;
  

	if (navigator.appName.substring(0,8) == "Netscape")  infoWin.focus();
}

function closeinfoWin(){    // close pop-up window if it is open 
  if (navigator.appName != "Microsoft Internet Explorer" 
      || parseInt(navigator.appVersion) >=4) //do not close if early IE
    if(infoWin != null) if(!infoWin.closed) infoWin.close() 
  }

















<!-- ************** Printable Registration Form pop up window ************* -->



var formWin = null    // use this when referring to pop-up window
var winformCount = 0
var winformName = "formWin"


function openregform(displayform,formplease,typeofform){

winformName = "formWin" + winformCount++ 
  closeformWin()   

  if(! window.focus)
    return;


  var formWin=window.open("main/regforminfo.php?in="+ typeofform +"&ipl="+ formplease +"", "winformName",'height=460,width=560,dependent=yes,scrollbars=yes');
  formWin.focus();
  displayform.target=formplease;
  

	if (navigator.appName.substring(0,8) == "Netscape")  formWin.focus();
}

function closeformWin(){    // close pop-up window if it is open 
  if (navigator.appName != "Microsoft Internet Explorer" 
      || parseInt(navigator.appVersion) >=4) //do not close if early IE
    if(formWin != null) if(!formWin.closed) formWin.close() 
  }










function FormatTextShort(command, option){
	
  	frames.shortMessage.document.execCommand(command, true, option);
  	frames.shortMessage.focus();
}

//Function to add image
function AddImageShort(){	
	imagePath = prompt('Enter the web address of the image', 'http://');				
	
	if ((imagePath != null) && (imagePath != "")){					
		frames.shortMessage.document.execCommand('InsertImage', false, imagePath);
  		frames.shortMessage.focus();
	}
	frames.shortMessage.focus();			
}






//Function to format text in the text box


function FormatText(command, option){
	
  	frames.message.document.execCommand(command, true, option);
  	frames.message.focus();
}

//Function to add image
function AddImage(){	
	imagePath = prompt('Enter the web address of the image', 'http://');				
	
	if ((imagePath != null) && (imagePath != "")){					
		frames.message.document.execCommand('InsertImage', false, imagePath);
  		frames.message.focus();
	}
	frames.message.focus();			
}


//Function to clear form
function ResetForm(){

	if (window.confirm('Annular l\'e-mail?')){
	 	frames.message.document.body.innerHTML = ''; 
	 	return true;
	 } 
	 return false;		
}

//Function to open pop up window
function openWin(theURL,winName,features) {
  	window.open(theURL,winName,features);
}




//-->

