/* 
 *
 * hcs functions v1.0 jQuery plugin
 * tested for jquery 1.4.2 
 *
 * Copyright 2010, Hartman Computer Solutions
 * http://www.h-c-s.nl/
 *
 * Dependencies: jQuery Core, hcs core
 *
*/

(function(a){a.hcs.extend(1.1,{navigate:function(b,f,h,e){if(h&&!a.isPlainObject(h)&&!confirm(h)){b=""}if(!b){return}e=a.isPlainObject(h)?h:e||{};if(f==="popup"||f===true){var d="";for(var c in e){if(c=="name"){continue}d+=(d.length>0?", ":"")+c+"="+e[c]}window.open(b,e.name||"","",d)}else{if(f==="post"){var g="";for(var c in e){g+="<input type='hidden' name='"+c+"' value='"+e[c]+"' />"}a("<form method='post' action='"+b+"' style='display:inline;'></form>").append(g).appendTo("body").submit()}else{window.location.href=b}}},checkboxFix:function(b){a(":checkbox:not(:checked)").each(function(){this.value=b||"";this.checked=true});return this}})})(jQuery);
