var arCampCost = new Array();var intForcedChecksMissing = 0;var intIframesBeingLoaded = 0;var bReadyForRedirect = true;var arCampList = [];var iForm = "document.coregform";function verifyElmExist(pValue, pType, pRequest) {if(pType != "int") pType = "str";try {if(String(pRequest) == "ShowTop") {pValue = "showmax";try {pRequest = intAPM_ShowTop;} catch(e) { pRequest = 3; }}if(String(pRequest) == "Width") {pValue = "width";try {pRequest = intAPM_Width;} catch(e) { pRequest = "400px"; }}if(String(eval(pType+"APM_"+pValue)) != "") {return eval(pType+"APM_"+pValue);} else {eval(pType+"APM_"+pValue+" = '"+pRequest+"';");if(String(eval(pType+"APM_"+pValue)) != "") {return eval(pType+"APM_"+pValue);} else {return "";}}} catch(e) {eval(pType+"APM_"+pValue+" = '"+pRequest+"';");return eval(pType+"APM_"+pValue);}}function markElm(pElement, pStatus) {try {document.getElementById(pElement).style.border = String(pStatus + 'px solid #cd2f39');} catch(e) {}}function verifyValidation(pCID) {try {var intErrors = 0;var bValidation = true;var tmpArray = eval('arCF_'+pCID);var tmpArrayOptional = eval('arCFO_'+pCID);if(tmpArray.length > -1) {for(var i=0; i 0) bValidation = false;return bValidation;}} catch(e) {return true;}}function registerThis(pCID, pInterstitial) {if(pInterstitial) {var arCoregs = String(pCID).split(",");var intVerified = 0;for(var i=0; i";fade(pCID, String('container_'+pCID), 100, 0, 1000);}function fade(pCID, id, opacStart, opacEnd, millisec) {var speed = Math.round(millisec / 100);var timer = 0;if(opacStart > opacEnd) {for(var i=opacStart; i>=opacEnd; i--) {setTimeout("changeOpac(" + pCID + "," + i + ",'" + id + "')",(timer * speed));timer++;}} else if(opacStart < opacEnd) {for(var i=opacStart; i<=opacEnd; i++) {setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));timer++;}}}function changeOpac(pCID, opacity, id) {var object = document.getElementById(id).style;object.opacity = (opacity / 100);object.MozOpacity = (opacity / 100);object.KhtmlOpacity = (opacity / 100);object.filter = "alpha(opacity=" + opacity + ")";if(parseInt(opacity) == 0) {document.getElementById(id).style.display = "none";writeToList(pCID);returnCoregContent();}}function writeToList(pCID) {var arList = String(readFromList()).substring(0, (String(readFromList()).length-1)).split(",");var bAdd = true;for(var i=0; i -1) {var pValue = String(eval('arCF_'+pCID)[cf]);strCFT = eval('arCFT_'+pCID)[cf];var strCustomValue = "";switch(String(strCFT).toLowerCase()) {case "text":case "hidden":case "textarea":strCustomValue = eval(iForm+"._"+pCID+"_"+pValue+".value");break;case "select-one":if(eval(iForm+"._"+pCID+"_"+pValue).selectedIndex >=0) strCustomValue = eval(iForm+"._"+pCID+"_"+pValue).options[eval(iForm+"._"+pCID+"_"+pValue).selectedIndex].value;break;case "checkbox":var intSubElements = eval(iForm+"._" + pCID + "_" + pValue).length;if((intSubElements != undefined) && (String(intSubElements) != "undefined")) {if((eval(iForm+"._" + pCID + "_" + pValue)[0].checked != undefined) && (String(eval(iForm+"._" + pCID + "_" + pValue)[0].checked) != "undefined")) {for(var j=0; j -1) {strURL = strURL.replace(new RegExp('#icoreg:'+String(eval('arCF_'+pCID)[cf])+'#','g'), strCustomValue);} else {var intIndex = String(strURL).indexOf(String(eval('arCF_'+pCID)[cf])+'=');if(Number(intIndex) > 0) {intIndex = (intIndex + Number(String(eval('arCF_'+pCID)[cf]).length) + 1);if((String(strURL).substring(intIndex, (intIndex + 1)) == "") || (String(strURL).substring(intIndex, (intIndex + 1)) == "&")) {strURL = strURL.replace(new RegExp(String(eval('arCF_'+pCID)[cf])+'=','g'), String(eval('arCF_'+pCID)[cf])+'=' + strCustomValue);}}}} catch(e) {}}}}} catch(e) {}strURL = strURL.replace(new RegExp('#icoreg:firstname#','g') , verifyElmExist("firstname", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:lastname#','g') , verifyElmExist("lastname", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:fullname#','g') , verifyElmExist("fullname", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:address#','g') , verifyElmExist("address", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:street#','g') , verifyElmExist("street", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:streetnumber#','g') , verifyElmExist("streetnumber", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:postcode#','g') , verifyElmExist("postcode", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:city#','g') , verifyElmExist("city", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:email#','g') , verifyElmExist("email", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:telephone#','g') , verifyElmExist("telephone", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:mobile#','g') , verifyElmExist("mobile", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:gender#','g') , verifyElmExist("gender", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:title#','g') , verifyElmExist("title", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:dateofbirth#','g') , verifyElmExist("dateofbirth", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:dobday#','g') , verifyElmExist("dobday", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:dobmonth#','g') , verifyElmExist("dobmonth", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:dobyear#','g') , verifyElmExist("dobyear", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:state#','g') , verifyElmExist("state", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:region#','g') , verifyElmExist("region", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:country#','g') , verifyElmExist("country", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:username#','g') , verifyElmExist("username", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:mobile_areacode#','g') , verifyElmExist("mobile_areacode", "str", ""));strURL = strURL.replace(new RegExp('#icoreg:telephone_areacode#','g') , verifyElmExist("telephone_areacode", "str", ""));return strURL;}function returnImpCounter(pCID) {var strImpCounter = "";for(var i=0; i';break;}}return strImpCounter;}function returnCoregContent() {var urlArrayValues = new Array();urlArrayValues[0] = 'wid=8544';urlArrayValues[1] = 'firstname=';urlArrayValues[2] = 'lastname=';urlArrayValues[3] = 'fullname=';urlArrayValues[4] = 'address=';urlArrayValues[5] = 'street=';urlArrayValues[6] = 'streetnumber=';urlArrayValues[7] = 'postcode=';urlArrayValues[8] = 'city=';urlArrayValues[9] = 'email=';urlArrayValues[10] = 'telephone_areacode=';urlArrayValues[11] = 'telephone=';urlArrayValues[12] = 'mobile_areacode=';urlArrayValues[13] = 'mobile=';urlArrayValues[14] = 'gender=';urlArrayValues[15] = 'title=';urlArrayValues[16] = 'dobday=';urlArrayValues[17] = 'dobmonth=';urlArrayValues[18] = 'dobyear=';urlArrayValues[19] = 'state=';urlArrayValues[20] = 'region=';urlArrayValues[21] = 'country=';urlArrayValues[22] = 'username=';verifyElmExist("firstname", "str", "");verifyElmExist("lastname", "str", "");verifyElmExist("fullname", "str", "");verifyElmExist("address", "str", "");verifyElmExist("street", "str", "");verifyElmExist("streetnumber", "str", "");verifyElmExist("postcode", "str", "");verifyElmExist("city", "str", "");verifyElmExist("email", "str", "");verifyElmExist("telephone", "str", "");verifyElmExist("mobile", "str", "");verifyElmExist("gender", "str", "");verifyElmExist("title", "str", "");verifyElmExist("dobday", "str", "");verifyElmExist("dobmonth", "str", "");verifyElmExist("dobyear", "str", "");verifyElmExist("state", "str", "");verifyElmExist("region", "str", "");verifyElmExist("country", "str", "");verifyElmExist("username", "str", "");verifyElmExist("mobile_areacode", "str", "");verifyElmExist("telephone_areacode", "str", "");verifyElmExist("width", "int", "Width");verifyElmExist("width", "int", "400px");verifyElmExist("showmax", "int", "ShowTop");verifyElmExist("showmax", "int", "3");try {for(var cfList=0; cfList";var arList = String(readFromList()).substring(0, (String(readFromList()).length-1)).split(",");for(var i=0; i -1) {var strTmp = String(eval('strURL_' + arCampList[cfList])).substring(Number(String(eval('strURL_' + arCampList[cfList])).indexOf(strValueToLookFor))+String(strValueToLookFor).length, String(eval('strURL_' + arCampList[cfList])).length);strTmp = String(strTmp).substring(0, String(strTmp).indexOf("#"));try {if(eval("strAPM_"+strTmp) != "") {try {if((String(eval("arCFT_" + arCampList[cfList])[cf]) == "radio") || (String(eval("arCFT_" + arCampList[cfList])[cf]) == "checkbox")) {for(var a=0; a 0) bRemoveElement = true;} else {eval(iForm+"._" + arCampList[cfList] + "_" + eval("arCF_" + arCampList[cfList])[cf]).value = eval("strAPM_" + strTmp);if(eval(iForm+"._" + arCampList[cfList] + "_" + eval("arCF_" + arCampList[cfList])[cf]).value != "") bRemoveElement = true;}} catch(e) {}}} catch(e) { try {var strUrlTmpValue;for(z=0; z 0) bRemoveElement = true;} else {eval(iForm+"._" + arCampList[cfList] + "_" + eval("arCF_" + arCampList[cfList])[cf]).value = eval("strAPM_" + strTmp);if(eval(iForm+"._" + arCampList[cfList] + "_" + eval("arCF_" + arCampList[cfList])[cf]).value != "") bRemoveElement = true;}}}}} catch(e) {}}}if(bRemoveElement) document.getElementById(String("c_" + arCampList[cfList] + "_") + eval("arCF_" + arCampList[cfList])[cf]).style.display = "none";}} catch(e) {}}} catch(e) {}}}window.onload = returnCoregContent;