/*
 * Copyright 2006 Servelots Infotech Pvt. Ltd.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you
 * may not use this file except in compliance with the License. You may
 * obtain a copy of the License at:
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0 
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 * implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
	function deleteCheck(str)
	{
		if (confirm("Do you really want to delete this pagelet?"))
                        {
				document.View.req.value=str;  
                                document.View.submit();
                        }    
	}
	 function modify(str,postid,urlid)
        {
		//	getBrowserInfo();
                  //      document.View.browser.value="isCompatible";
                    //    if((this.isMozilla && this.versionMinor < 1.3) || (this.isNS && this.versionMinor<7) || (this.isIE && this.versionMinor < 5.5)){
                      //  document.View.browser.value="notCompatible";
                       // } 
                        document.View.req.value=str;
                        document.View.submit();
        }      

        function ViewSubmit(str)
        {
                if (str == "deletepost")
                {
                        if (confirm("Do you really want to delete this pagelet?"))
                        {
                                document.View.req.value=str;
                                document.View.submit();
                        }
                }
                else
                {
                        // Web Macro Edit Part
                        if (str == "oldpost")
                        {
                                document.View.action="WMPosting";
                        }
                        document.View.req.value=str;
                        document.View.submit();
                }
        }
        function NoteResponse(ch,user,persona,di_p,urlid)
        {
                var newWin;
                if (ch == 1)
                {
                        newWin=window.open("NoteBook?req=106&user="+user+"&pid="+di_p+"&perid="+persona+"&urlid="+urlid, "notebook","toolbars=0,location=0,status=0,directories=0,menubar=0,resizable=1,scrollbars=1,height=400,width=320");
                        newWin.focus();
                }
                else
                {
                        newWin=window.open("MySpace?req=response&user="+user+"&pid="+di_p+"&persona="+persona+"&urlid="+urlid, "ReadResponses","toolbars=0,location=0,height=500,width=600");
                        newWin.focus();                              
 	}
}

