

_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 nav_url(url)

{

var url = url;

  //<--

 if(navigator.userAgent.indexOf("Firefox") != -1)

{

   window.location = url;

}

else if(navigator.userAgent.indexOf("MSIE") != -1)

{

   window.location = url;

}

else if(navigator.userAgent.indexOf("Netscape") != -1)

{

   window.location = url;

}

else

{

    document.location.href=url;

}



}







<!--

function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}

function chk()

{

if((document.frm.pnumber.value > document.frm.hid_allpage.value) || (document.frm.pnumber.value <= 0))

{

alert("Please Select the number between 1 and "+ document.frm.hid_allpage.value);

return false;

}

}//-->



function getbrowserwidth()

{

    	if (navigator.userAgent.indexOf("MSIE") > 0)

        	{

        		return(document.body.clientWidth);

        	}

        else

            {

            		return window.outerWidth;

            	}

        }

        function getbrowserheight()





            {

            	if (navigator.userAgent.indexOf("MSIE") > 0)





                	{

                		return(document.body.clientHeight);

                	} 

                else





                    {

                    		return(window.outerHeight);

                    	}

                }

                var popup = new Object()

                function CenterPopup(URL, width, height)





                    {

                    	// get center of browser window

                    	var X = getbrowserwidth() / 2

                    	var Y = getbrowserheight() / 2

                    	

                    	/* popup = window.open(URL, 'PopUp', 

                    		'scrollbars=yes ' +

                    		'width=' + width + ' ' +

                    		'height=' + height + ' ' +

                    		'top=' + (window.screenTop + (Y - (height/2))) + ' ' +

                    		'left=' + (window.screenLeft + (X - (width/2))) 

                    		)

							 */

							

							popup = window.open(URL, 'PopUp', 

                    		'scrollbars=no ' +

							'location=no ' +

                    		'width=' + width + ' ' +

                    		'height=' + height + ' ' +

                    		'top=' + (window.screenTop + (Y - (height/2))) + ' ' +

                    		'left=' + (window.screenLeft + (X - (width/2))) 

                    		)

                    	

						popup.focus()

                }

               
 <!--//

  function isDecimal(field)

  {

  if (document.all) ascii_code=event.keyCode; else ascii_code=e.which;

 

   if (ascii_code!=8 || ascii_code!=37 || ascii_code!=38 || ascii_code!=45 || ascii_code!=46 || ascii_code!=35 || ascii_code!=36)

   {

   var regex = /^[0-9+\.]*$/;

   var decimal_pt = field.value.indexOf(".");

   var substring_from_decimal_pt = field.value.substring(decimal_pt+1, field.value.length);

   var decimal_pt2 = substring_from_decimal_pt.indexOf(".");



   //alert(decimal_pt2);

    if(!regex.test(field.value) || decimal_pt2>=0)

    {

        alert('Please enter only Decimal Values in this field\n\nEg: 50.00');

            field.value = "";

			field.focus();

			return false;



     }

	

	}

  }

 //-->

  <!--//

  function isNumber(field)

  {

  if (document.all) ascii_code=event.keyCode; else ascii_code=e.which;

 

   if (ascii_code!=8 || ascii_code!=37 || ascii_code!=38 || ascii_code!=45 || ascii_code!=46 || ascii_code!=35 || ascii_code!=36)

   {

   var regex = /^[0-9+]*$/;

  



   //alert(decimal_pt2);

    if(!regex.test(field.value))

    {

            alert('Please enter only Numberic Values in this field\n\nEg: 50');

            field.value = "";

			field.focus();

			return false;



     }

	

	}

  }

 //-->



<!--

function MM_jumpMenu(targ,selObj,restore){ //v3.0

  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}

//-->

function addBookmarkForBrowser() {
  if (document.all) {
    window.external.AddFavorite(window.location.href , document.title);
  } 
  else {
    if (window.sidebar) window.sidebar.addPanel(document.title,window.location.href,"")
    else alert('Sorry - not in this browser');
  }
}

