
// function used for opening new windows
function openWindow( src, name, width, height, scrollbar,menu,resize ) {
   var new_window = window.open( src, name, 'toolbar=no,width='+ width +',height='+ 
                    height+',scrollbars=' + scrollbar +',menubar=' + menu+',resizable=' + resize );
   new_window.focus();
}

/*function BlockEnterKey()
{
   if( window.layers )
   {
      return;
   }

   if( window.event.keyCode == 13 )
   {
      event.returnValue=false;
   }
}*/


/*Watermark function for inputs. Put swap_value class on all inputs needing watermark feature*/
$(function()
    {
        swapValues=[];
        $(".swap_value").each(
            function(i){
                swapValues[i]=$(this).val();
                $(this).focus(function()
                    {
                        if($(this).val()==swapValues[i])
                        {
                            $(this).val("")
                        }
                    }
                ).blur(function()
                    {
                        if($.trim($(this).val())=="")
                            {
                                $(this).val(swapValues[i])
                            }
                     }
                 )
            }
      )
  }
);




