
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}




function conf(form){
var count=0;
   for (i = 0; i < form.elements.length; i++)
   {
     if (form.elements[i].type == "checkbox")
     {
          if(form.elements[i].checked == true)
	          count++;
       
    }
   }
   
var ok= confirm("You trying to delete "  + count + "  Photos");
  if (ok==true) {
    return true;
  } else {
    return false;
  }

}

_editor_url = "";                   
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
  document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
  document.write(' language="Javascript1.2"></scr' + 'ipt>');  
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
  function selectDate (dy,mo,yr) {
	document.calendar.mon.value = mo;
	document.calendar.day.value = dy;
	document.calendar.year.value = yr;
  }
  
  
  function show() { 
if(document.frm.photo.style.visibility=='hidden'){
      document.frm.photo.style.visibility = 'visible';
      document.frm.pc.style.visibility = 'hidden';
	
    } else{  
      document.frm.photo.style.visibility = 'hidden';
      document.frm.pc.style.visibility = 'visible';
    } 
	
	
}

