var _gFOSModded = new gFormModifix();

function gFormModifix(){
	var self = this;
		
	//Constructor
	addDOMLoadEvent(hookForms);
	//
	function addDOMLoadEvent(f){if(!window.__ADLE){var n=function(){if(arguments.callee.d)return;arguments.callee.d=true;if(window.__ADLET){clearInterval(window.__ADLET);window.__ADLET=null}for(var i=0;i<window.__ADLE.length;i++){window.__ADLE[i]()}window.__ADLE=null};if(document.addEventListener)document.addEventListener("DOMContentLoaded",n,false);/*@cc_on @*//*@if (@_win32)document.write("<scr"+"ipt id=__ie_onload defer src=//0><\/scr"+"ipt>");var s=document.getElementById("__ie_onload");s.onreadystatechange=function(){if(this.readyState=="complete")n()};/*@end @*/if(/WebKit/i.test(navigator.userAgent)){window.__ADLET=setInterval(function(){if(/loaded|complete/.test(document.readyState)){n()}},10)}window.onload=n;window.__ADLE=[]}window.__ADLE.push(f)}
	function hookForms(){
		for(var i=0;i<document.forms.length;i++){
			var frm=document.forms[i];
			if(document.createElement){
				var hid=document.createElement("INPUT");
				if(hid.setAttribute){
					hid.setAttribute("type", "hidden");
					hid.setAttribute("name", "_is_js_");
					hid.setAttribute("value", "ofcourse");
					frm.appendChild(hid);
				}
			}
		}
	}
}
