﻿var ajaxurl="http://admin.onefy.com/";var referer;try{referer=window.top.document.referrer}catch(err){referer=document.referrer}function JSONscriptRequest(fullUrl){this.fullUrl=fullUrl;this.noCacheIE='&noCacheIE='+(new Date()).getTime();this.headLoc=document.getElementsByTagName("head").item(0);this.scriptId='JscriptId'+JSONscriptRequest.scriptCounter++};JSONscriptRequest.scriptCounter=1;JSONscriptRequest.prototype.buildScriptTag=function(){this.scriptObj=document.createElement("script");this.scriptObj.setAttribute("type","text/javascript");this.scriptObj.setAttribute("src",this.fullUrl)};JSONscriptRequest.prototype.removeScriptTag=function(){this.headLoc.removeChild(this.scriptObj)};JSONscriptRequest.prototype.addScriptTag=function(){this.headLoc.appendChild(this.scriptObj)};function Req(url){var onReq=new JSONscriptRequest(url);onReq.buildScriptTag();onReq.addScriptTag()}function GetUrlParam(paramName){var oRegex=new RegExp('[\?&]'+paramName+'=([^&]+)','i');var oMatch=oRegex.exec(window.location.search);if(oMatch&&oMatch.length>1)return oMatch[1];else return''}function SelectInput(str,str1){obj=document.all[str1];for(i=0;i<obj.length;i++){obj[i].checked=str}}function getDomain(suburl){var hostpattern=new RegExp("^((?:http:\/\/)|(?:ftp:\/\/(?:[^:]+:[^@]+@)?)|(?:gvod:\/\/))?([^\/:]+)","g");var hostmatcher=hostpattern.exec(suburl);if(null!=hostmatcher){var subhost=decodeURIComponent(hostmatcher[2]);return subhost;var domainpatt=new RegExp("[0-9a-z-]+\.(com|cn|org)$","g");var domainmatcher=domainpatt.exec(subhost);if(null!=domainmatcher){return domainmatcher[0]}else{return subhost}}}