


var photoWin = null    // use this when referring to pop-up window
var winpressCont = 0
var winNome = "photoWin"

		function show_lables( pFileName, pTitle, pCaption) {

// 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><style>');
	photoWin.document.write(' body{   scrollbar-base-color: #660000; 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:#183B4F;} ');
	photoWin.document.write('</style></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=#ffffff><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() 
  }









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
}








<!--********************  Club Check **********************-->
<!--********************  Club Check **********************-->
<!--********************  Club Check **********************-->

function clubregocheck(){


  var clubf = 0;
  var clubfString =  /^[_0-9 a-z-âéçèàäüûùµëêöô]*[_0-9 a-z-âéçèàäüûùëêöô]$/i;
	var flatString =  /^[0-9a-z]*[0-9a-z]$/i;
	var numString =  /^[0-9 .]*[0-9 .]$/i;
 var emailLine =  /^([_0-9a-z\.-])+@([_0-9a-z\.-])+[a-z]{2,3}$/i;
 var codeString = new RegExp("\\d{5}", "g");
 
 
 
 
  <!--********************  check facturation **********************-->
 
  
 
 
  if ((document.clubform.clubnom.value == "")){
     clubf=1;
     window.alert("Votre nom SVP. \n\n Your last name please.");
     document.clubform.clubnom.focus();
     return;
  }
	
  if ((document.clubform.clubprenom.value == "")){
     clubf=1;
     window.alert("Votre prenom SVP\n\nYour first name please\n"); 
		  document.clubform.clubprenom.focus();
		 return;
  }
	
  if ((document.clubform.clubadresse.value == "")){
     clubf=1;
     window.alert("Votre adresse ?\n\nYour address ? \n\nPujol Izard\n");
     document.clubform.clubadresse.focus();
     return;
  }
	
	      
    if ((document.clubform.clubcodepost.value=="")){
     clubf=1;
     window.alert("Attention, tout code postal comprend 5 chiffres\n\nYour postcode please\n");
     document.clubform.clubcodepost.focus();
     return;
  }
	
		  if (document.clubform.clubville.value == ""){
     clubf=1;
     window.alert("Sans la ville ou le village nous risquons fort un retour à l'envoyeur !!!\n\n Please state your town,city,or village name\n");
     document.clubform.clubville.focus();
     return;
  }
		  if (document.clubform.clubpays.value == ""){
     clubf=1;
     window.alert("Certes, nous sommes en Europe mais dans quel pays ?\n\nPlease indicate your country");
     document.clubform.clubpays.focus();
     return;
  }
	
	if (document.clubform.clubtel.value.search(numString) == -1){
     clubf=1;
     window.alert("Pouvez - vous vérifier que votre téléphone soit correcte?\n  Please verify that your telephone number is correct \n");
     document.clubform.clubtel.focus();
     return;
  }
	
		  if (document.clubform.clubmail.value.search(emailLine) == -1){
     clubf=1;
     window.alert("Pouvez-vous vérifier que votre adresse courriel soit correcte? merci\nPlease check that your email address is correct ! ");
     document.clubform.clubmail.focus();
     return;
  }
	
	

  if (clubf==0){
   document.clubform.submit();
     }
  return;
}
 
 <!--*******************************************************************-->

 






function tarExcheck(){


  var ubf = 0;
  var clubfString =  /^[_0-9 a-z-âéçèàäüûùµëêöô]*[_0-9 a-z-âéçèàäüûùëêöô]$/i;
	var flatString =  /^[0-9a-z]*[0-9a-z]$/i;
	var numString =  /^[0-9 .]*[0-9 .]$/i;
 var emailLine =  /^([_0-9a-z\.-])+@([_0-9a-z\.-])+[a-z]{2,3}$/i;
 
 
 
 
 
  <!--********************  check facturation **********************-->
 
  
 
 
  if ((document.tarExform.clubnom.value == "")){
     ubf=1;
     window.alert("Votre nom SVP. \n\n Your last name please.");
     document.tarExform.clubnom.focus();
     return;
  }
	
  if ((document.tarExform.clubprenom.value == "")){
     ubf=1;
     window.alert("Votre prenom SVP\n\nYour first name please\n"); 
		  document.tarExform.clubprenom.focus();
		 return;
  }
	
  if ((document.tarExform.clubadresse.value == "")){
     clubf=1;
     window.alert("Votre adresse ?\n\nYour address ? \n\nPujol Izard\n");
     document.tarExform.clubadresse.focus();
     return;
  }
	
	      
    if ((document.tarExform.clubcodepost.value=="")){
     ubf=1;
     window.alert("Attention, le code postal - chiffres\n\nYour postcode please\n");
     document.tarExform.clubcodepost.focus();
     return;
  }
	
		  if (document.tarExform.clubville.value==""){
     ubf=1;
     window.alert("Sans la ville ou le village nous risquons fort un retour à l'envoyeur !!!\n\n Please state your town,city,or village name\n");
     document.tarExform.clubville.focus();
     return;
  }
		  if (document.tarExform.clubpays.value==""){
     ubf=1;
     window.alert("Certes, nous sommes en Europe mais dans quel pays ?\n\nPlease indicate your country");
     document.tarExform.clubpays.focus();
     return;
  }
	
	if (document.tarExform.clubtel.value.search(numString) == -1){
     ubf=1;
     window.alert("Pouvez - vous vérifier que votre téléphone soit correcte?\n  Please verify that your telephone number is correct \n");
     document.tarExform.clubtel.focus();
     return;
  }
	
		  if (document.tarExform.clubmail.value.search(emailLine) == -1){
     ubf=1;
     window.alert("Pouvez-vous vérifier que votre adresse courriel soit correcte? merci\nPlease check that your email address is correct ! ");
     document.tarExform.clubmail.focus();
     return;
  }
	
	

  if (ubf==0){
   document.tarExform.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> Pujol Izard 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()">Fermer</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();
}













function ctrlPrint(){
  print();
}


<!-- Catalog Extra Pages -->





function openInsert(pImageName) {

// specify window parameters document.body.clientHeight window.innerWidth

var wit=380;
var hit=550;
  extraPag = window.open("", "imag","width="+wit+",height="+hit+",status,scrollbars,resizable,left=0,top=0");

// 	
   extraPag.document.write('<html><head><title>Pujol Izard</title>');
	 extraPag.document.write('<style type="text/css"><!-- ');
	 extraPag.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; } ');
	 extraPag.document.write(' //--></style>');
	 extraPag.document.write('</head>');	
   extraPag.document.write('<BODY BGCOLOR=#000000 TEXT=#FFFFCC LINK=#33CCFF VLINK=#FF6666>');
   extraPag.document.write('<center>');
   extraPag.document.write('<img src="vas/catelog/gallery/larp/' + pImageName + '" alt="' + pImageName + '"><p>');
   extraPag.document.write('<a href="#" onClick="self.close()">Fermer</a><br>');  
   extraPag.document.write('<p></font></body></html>');
   extraPag.document.close();	
	

	if (navigator.appName.substring(0,8) == "Netscape"){ 
 extraPag.focus();
}

}



	function eegoPage(newURL) {

   	if (newURL != "") {
   	
  		if (newURL == "-" ) {
			resetMenu();
		} else {
  
// send page to designated URL
   			document.location.href = newURL;
   		}
   	}
}





function PrintCommande(print,windowComman,typeofComman,idrow,bge){
  if(! window.focus)
    return;

  
  var printComman=window.open("vas/catelog/inprintCommande.php?chprint="+ typeofComman +"&oreder="+ idrow +"&badge="+ bge +"",windowComman,'height=580,width=620,dependent=yes,scrollbars=yes');
  printComman.focus();

 
}






function openPrintPageCatAdmin(print,windowPrint,typeofPrint,idcode){
  if(! window.focus)
    return;

  
  var printWin=window.open("vas/catelog/inprintcat.php?chprint="+ typeofPrint +"&rowid="+ idcode +"",windowPrint,'height=580,width=620,dependent=yes,scrollbars=yes');
  printWin.focus();

 
}



function openPrintPageCat(print,windowPrint,typeofPrint,idcode,url){
  if(! window.focus)
    return;

  
  var printWin=window.open(""+ url +"vas/catelog/inprintcat.php?chprint="+ typeofPrint +"&rowid="+ idcode +"",windowPrint,'height=580,width=620,dependent=yes,scrollbars=yes');
  printWin.focus();

 
}





function openPrintPageCatListAdmin(print,windowPrint,typeofPrint,cat,page,mark,onoff,nextpage,url){
  if(! window.focus)
    return;

  
  var printWin=window.open(""+ url +"vas/catelog/inprintcat.php?chprint="+ typeofPrint +"&kategory="+ cat +"&catpageno="+ page +"&brande="+ mark+"&searchakey="+ keys +"&onswitch="+ onoff +"&debut="+ nextpage +"",windowPrint,'height=560,width=620,dependent=yes,scrollbars=yes');
  printWin.focus();

 
}


function openPrintPageCatList(print,windowPrint,typeofPrint,cat,page,mark,keys,onoff,nextpage,url,pag){
  if(! window.focus)
    return;

  
  var printWin=window.open(""+ url +"vas/catelog/inprintcat.php?chprint="+ typeofPrint +"&kategory="+ cat +"&catpageno="+ page +"&brande="+ mark+"&searchakey="+ keys +"&onswitch="+ onoff +"&debut="+ nextpage +"&page="+ pag +"",windowPrint,'height=560,width=620,dependent=yes,scrollbars=yes');
  printWin.focus();

 
}



function openPrintPage(print,windowPrint,typeofPrint,weekset,topi,url){
  if(! window.focus)
    return;

  
  var printWin=window.open(""+ url +"main/inprint.php?chprint="+ typeofPrint +"&weektoset="+ weekset +"&topic="+ topi +"",windowPrint,'height=580,width=620,dependent=yes,scrollbars=yes');
  printWin.focus();
 // print.target=windowPrint;
}

function openPrintPageadmin(print,windowPrint,typeofPrint,weekset,topi){
  if(! window.focus)
    return;
  
  var printWin=window.open("../../main/inprint.php?chprint="+ typeofPrint +"&weektoset="+ weekset +"&topic="+ topi +"",windowPrint,'height=580,width=620,dependent=yes,scrollbars=yes');
  printWin.focus();
 // print.target=windowPrint;
}

function openPrintPageclient(print,windowPrint,typeofPrint,weekset,topi){
  if(! window.focus)
    return;
  
  var printWin=window.open("../../main/inprint.php?chprint="+ typeofPrint +"&weektoset="+ weekset +"&topic="+ topi +"",windowPrint,'height=580,width=620,dependent=yes,scrollbars=yes');
  printWin.focus();
 // print.target=windowPrint;
}






<!--******************** 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;
  var passString = /^[_0-9a-z]*[_0-9a-z]$/i;


  if (document.emaildiff.prenom.value.search(textString) == -1){
     em=1;
     window.alert("Votre prenom?!?!\nYour first name please !\t\t\n");
     document.emaildiff.prenom.focus();
     return;
  }



  if (document.emaildiff.nom.value.search(textString) == -1){
     em=1;
     window.alert("Votre nom?!?!\nYour last name please\t\t\n");
     document.emaildiff.nom.focus();
     return;
  }
    if (document.emaildiff.email.value.search(emailString) == -1){
     em=1;
     window.alert("Pouvez-vous vérifier que votre adresse courriel soit correcte? merci\t\t\nPlease verify that your email address is correct.");
     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);
}






