function confirmSubmit($msg){var agree=confirm($msg);if (agree)	return true ;else	return false ;}function MM_openBrWindow(theURL,winName,features, width, height) { //v2.0 // window.open(theURL,winName,features);// alert(width);var windowY = Math.ceil( (window.screen.height - height) /2-25 ); // moves the image.var windowX = Math.ceil( (window.screen.width - width) /2);  processWindow = window.open(theURL,winName,features);  processWindow.moveTo  ( windowX , windowY );}function validate_response_form($nameofform) {//alert($nameofform);//alert(document.forms[$nameofform].elements["client_info[phone]"].value);$error = true;if(document.forms[$nameofform].elements["magicinput[response_author]"].value == '') $error = false;if($error) if(document.forms[$nameofform].elements["magicinput[response_body]"].value == '') $error = false;if ($error == false) {       alert ('You must complete all the required fields'); }if ($error == false) {       return false;}else return true;  }function newcat_prompt(processing_page, cat_ref) {       var newname=prompt('Enter the new gallery name', '')       if (newname) {//alert(newname);           document.new_cat.new_cat_name.value = newname;           document.new_cat.submit();       }       else       return false;}
