function getval(k){var lck=k.toLowerCase();var query=""+document.location.search;var lcquery=query.toLowerCase();var pos=lcquery.indexOf(lck+'=');var pos2=-1;var res='';if(pos!=-1){pos+=k.length+1;pos2=query.indexOf('&',pos);pos2=(pos2==-1)?query.length:pos2;res=query.substring(pos,pos2);}
return res;}
function getsubcode(type){var prodtype=getval("ProdType")||type||"1";var subcodes=new Array();subcodes[1]="voice_product_163";subcodes[2]="voice_245";subcodes[3]="voice_249";subcodes[4]="voice_250";subcodes[5]="voice_248";subcodes[6]="voice_318";subcodes[7]="voice_319";subcodes[8]="voice_320";subcodes[9]="voice_555";subcodes[10]="voice_422";subcodes[11]="voice_620";subcodes[12]="voice_621";subcodes[13]="voice_1008";subcodes[14]="voice_623";subcodes[15]="voice_696";subcodes[16]="voice_625";subcodes[17]="voice_1009";subcodes[18]="voice_697";subcodes[19]="voice_622";return subcodes[prodtype];}
function stsignup(type,retcode,code,umt,target,wlr){var subcode=getsubcode(type);if(retcode=="{{uin}}"){document.location.replace("/products/nm/contactus.html?showform=1");}else{umt=getval("umt")||umt||"N";retcode=getval("resellercode")||retcode||"NORETAILERCODE";code=getval("srccode")||code||"COD_11";var winfeatures="height=500,width=750,toolbar=no,menubar=no,location=no,toolbar=no,menubar=no,scrollbars=yes,resize=no,left=40,top=40,status=yes";var url="";url=getsturl(code,subcode,retcode,umt);if((wlr!="")&&(wlr!=null)){url+="&WLR_MPF_CODE=WLR_COD_03&LINESTATUS=WLR";}
if(url){var targ=(target)?target:"_self";if(targ=="_self"){document.location.replace(url);}else{var win=window.open(url,targ);}}}}
function getsturl(code,subcode,retcode,umt){var url="http://www.tiscali.co.uk/registration/tiscali-talk-start.php?nation=uk&brand=tiscali&startup=PluginSelfProvisioning&startnode=startup&startform=startup&DISPLAY_LANGUAGE=EN&SUBSCRIPTION_CODE="+subcode+"&SUBSCRIPTION_CODE_PASSWORD=tiscali&RELEASE_LANGUAGE=DISABLED&ROLLBACK=N&ACCOUNT_SOURCE="+code+"&RETAILER_CODE="+retcode+"&USE_MONEY_TRANFER="+umt+"&PASS_THROUGH_PARAM="+escape("RETAILERCODE="+retcode);return url;}
