  function showbig(picname){
    window.open('/includes/foto.php5?pic='+picname,'_blank','scrollbars=yes,taskbar=no,resizeable=no,status=no,menubar=no,top=30,left=30,width=30,height=30');
  }
  
  function PreLoad(source){
    var NewImage = new Image();
    NewImage.src = source;
  }
  
  function prepareSubmit(frm){
    var len = frm.all("editbox").length; if (!len) len = 1;
    for (var i=0; i<len; i++)
      frm.all("codebox", i).innerText = frm.all("codebox", i).style.display ? borderOn(frm.all("codebox", i).innerText) : borderOn(frm.all("editbox", i).innerHTML);
  }
   
 function menuProcess(menuId){
 	 if(menuId.style.display == 'none'){
     menuId.style.display = 'block';
   }else{
   	 menuId.style.display = 'none';
   }
 }
 
	function Preview(o_Link) {
		var FileNames = {
			'LightGreen' : 'light-green',
			'PeachColored' : 'peach-coloured'
		};
		var Style = o_Link.parentNode.id;
		var ImgID = o_Link.id.substr(Style.length + 1, 2);
		var PreviewURL = '/includes/preview.html?img=' + escape(FileNames[Style]) + '_' + escape(ImgID) + '.jpg&style=' + escape(Style);
		
		var WinName = "Preview_" + ImgID;
		var Width = 570; var Height = 430;
		
		window.open(PreviewURL, WinName, 'width=' + Width + ',height=' + Height + ',toolbar=no,scrollbars=no,menubar=no,status=no,resizable=no' + String((screen.width - Width) / 2) + ',top=' + String((screen.height - Height) / 2));
	}
 
 	function Zoom(o_Img) {
		var FileNames = {
			'LightGreen' : 'light-green',
			'PeachColored' : 'peach-coloured'
		};
		var Style = o_Img.className;
		var ImgID = o_Img.id.substr(Style.length + 1, 2);
		var PreviewURL = '/includes/preview.html?img=' + escape(FileNames[Style]) + '_' + escape(ImgID) + '.jpg&style=' + escape(Style);
		var WinName = "Preview_" + ImgID;
		var Width = 570; var Height = 430;

		window.open(PreviewURL, WinName, 'width=' + Width + ',height=' + Height + ',toolbar=no,scrollbars=no,menubar=no,status=no,resizable=no' + String((screen.width - Width) / 2) + ',top=' + String((screen.height - Height) / 2));
	}
 
