function newPage(proj){ var ok=false; var pagelocation = window.frames['pagearchive'].location.href; var title = "Title"; while(!ok){ var title=window.prompt("Enter page title, the created page will be positioned under the current selection",title); if(title==null){ ok=true; }else if(strValidate(title,"latin2")==false){ alert("Field can only contain words containing the characters a-�,-,_,.,',',(,),@ and 0-9"); }else{ ok=true; window.frames['pagearchive'].location.search = "func=newpage&title="+title.replace(/^\s+/,'').replace(/\s+$/,'')+"&cmd=file/explorepages"; } } } function newBasedOn(fileobject,title){ var controlIndex; var element; var cnt=0; var item; var form = window.frames['pagearchive'].document.folder; if(fileobject){ while(!ok){ title=window.prompt("Enter new name",title); if(title==null){ ok=true; }else if(strValidate(title,"latin2")==false){ alert("Field can only contain words containing the characters a-�,-,_,.,',',(,),@ and 0-9"); }else{ ok=true; window.frames['pagearchive'].location.search="func=newbasedon&title="+title+"&fileobject="+fileobject+"&cmd=file/explorepages"; } } }else{ var numberOfControls=form.length; for(controlIndex=1;controlIndex1){ alert("You can only have one item selected with this function"); }else if(cnt==1){ element=form[controlIndex]; var ok=false; var title="New page"; while(!ok){ var title=window.prompt("Enter new name",title); if(title==null){ ok=true; }else if(strValidate(title,"latin2")==false){ alert("Field can only contain words containing the characters a-�,-,_,.,',',(,),@ and 0-9"); }else{ ok=true; window.frames['pagearchive'].location.search="func=newbasedon&title="+title+"&item="+item+"&cmd=file/explorepages"; } } } } } function sendEmail(scripturl){ var pages=""; var controlIndex; var element; var form = window.frames['pagearchive'].document.folder; var numberOfControls=form.length; for(controlIndex=1;controlIndex