function search(url) { var qryName = new Array(); var qryValue = new Array(); var toParseArray = new Array(); var camp_str = ''; url = url.substr(url.indexOf("?") + 1); toParseArray = url.split("&"); if (toParseArray.length == 0 && url!="") { toParseArray[0] = url; } for (var i = 0; i < toParseArray.length; i++) { qryName[i] = toParseArray[i].substr(0,toParseArray[i].indexOf("=")).replace(/\+|space/gi," "); qryValue[i] = toParseArray[i].substr(toParseArray[i].indexOf("=")+1).replace(/[+]/g," "); if ("chm" == qryName[i]) { camp_str = "&chm=" + qryValue[i]; } } return camp_str; } function ExtractQryStr() { var camp_str=''; var url = ''; if (null != window.location) { url = window.location.href; } if ('' != url) { camp_str = search(url); } if ('' != camp_str){ return camp_str; } return camp_str; } camp_addon = ExtractQryStr(); function HideStatus() { window.status = "complete" != document.readyState ? "Loading..." : window.defaultStatus; } document.onreadystatechange = HideStatus; var cururl = ''; if (-1 != window.location.href.indexOf("?")) { cururl = window.location.href.substr(0, window.location.href.indexOf("?")); } else { cururl = window.location.href; } var addr = ''; addr = '//' + 'www.templatehelp.com' + '/pr_interface.php?' + 'cols=3&rows=3&sadult=0&sp=0&bgcolor=%23FFFFFF&type=0&category=0&frname=tFrm&pr_code=10pPCPG2A3jxU2i96ux7lc98Y0tvPE' + '&callfrom=' + cururl + camp_addon + '&ref='; addr += '&extref=' + escape(document.referrer); document.write('');