   var _CORE_DIR_IMAGES;var _CORE_COPY_PASTE="";function _core_dir_imgs(dir){this._CORE_DIR_IMAGES=dir;}function _imgs(image){return this._CORE_DIR_IMAGES+dvalue(image,"");}var _IDS_STATE=new Array();var _TABS_STATE=new Array();function swap_tab(tab_screen_id,group_id){if(tab_screen_id!=false){for(tab_id in _TABS_STATE["T_"+group_id]){tab_data=_TABS_STATE["T_"+group_id][tab_id];visible=tab_data['tab_screen_id']==tab_screen_id?1:0;toggle_visibility_id_set(tab_data['tab_screen_id'], visible, 'block');if(tab_data['tab_id']!=null){if(visible==1)document.getElementById(tab_data['tab_id']).className="active";else       document.getElementById(tab_data['tab_id']).className="inactive";}}}}function add_tab(tab_screen_id,group_id,tab_id){if(_TABS_STATE["T_"+group_id]==undefined){_TABS_STATE["T_"+group_id]=new Array();}tab_id=tab_id!=null?tab_id:null;new_tab={'tab_screen_id':tab_screen_id,'tab_id':tab_id};_TABS_STATE["T_"+group_id].push(new_tab);}function swap_id_state(id_screen_id,group_id){if(id_screen_id!=false){for(id_id in _IDS_STATE["T_"+group_id]){id_data=_IDS_STATE["T_"+group_id][id_id];visible=id_data['id_screen_id']==id_screen_id?1:0;toggle_visibility_id_set(id_data['id_screen_id'], visible, 'block');if(id_data['id_id']!=null){if(visible==1)document.getElementById(id_data['id_id']).className="active";else       document.getElementById(id_data['id_id']).className="inactive";}}}}function swap_id_add(id_screen_id,group_id,id_id){if(_IDS_STATE["T_"+group_id]==undefined){_IDS_STATE["T_"+group_id]=new Array();}id_id=id_id!=null?id_id:null;new_id={'id_screen_id':id_screen_id,'id_id':id_id};_IDS_STATE["T_"+group_id].push(new_id);}function calc_height(item_count,item_width,item_height,min_height,max_width){screen_width=max_width==null?document.body.clientWidth:max_width;height=item_width===false?(item_height * item_count):(item_height * Math.round((item_count/(screen_width/item_width))+0.49));height=min_height!=null&&min_height>height?min_height:height;return height;}function menu_item_hover(item,class_name){item.className=class_name;}function test(){alert('test');}function goto_internal_page(page){window.location=page;}function pad(str,length,pad_char){pad_char=dvalue(pad_char,0);str=str.toString();str_len=str.length;return_str="";for(i=0;i<length-str_len;i++){return_str+=pad_char;}return return_str+str;}function counter(start,end,speed,id){if(document.getElementById(id)!=null)document.getElementById(id).innerHTML=start;if(speed<0&&start>end){setTimeout('counter('+(start+speed)+','+end+','+speed+',"'+id+'")',Math.abs(speed)* 1000);}else  if(speed>0&&start<end){setTimeout('counter('+(start+speed)+','+end+','+speed+',"'+id+'")',Math.abs(speed)* 1000);}}function set_id_vis(id,vis){if(document.getElementById(id)){document.getElementById(id).style.display=vis;}}function toggle_visibility_obj(obj){if(obj.style.display=="none"){obj.style.display="";}else{obj.style.display="none";}}function toggle_visibility_id(id,start,swap){start=(start==undefined||start==null)?"inline":start;swap=(swap==undefined||swap==null)?"none":swap;if(document.getElementById(id)){if(document.getElementById(id).style.display==start||document.getElementById(id).style.display==""){document.getElementById(id).style.display=swap;}else{document.getElementById(id).style.display=start;}}}function toggle_visibility_obj_set(obj,visible){if(obj){if(visible=='1'){obj.style.display="";}else{obj.style.display="none";}}}function toggle_visibility_id_set(id,visible,display_type){display_type=display_type==null?"inline":display_type;if(document.getElementById(id)){if(visible=='1'||visible==1){document.getElementById(id).style.display=display_type;}else{document.getElementById(id).style.display="none";}}}function get_selected(obj){index=obj.selectedIndex;return obj.options[index].value;}function get_selected_text(id){index=document.getElementById(id).selectedIndex;return document.getElementById(id).options[index].text;}function set_css(id,css_var,value){if(document.getElementById(id)){if(css_var=='width'){document.getElementById(id).style.width=value+"px";}else  if(css_var=='height'){document.getElementById(id).style.height=value+"px";}else  if(css_var=='left'){document.getElementById(id).style.left=value+"px";}else  if(css_var=='right'){document.getElementById(id).style.right=value+"px";}else  if(css_var=='top'){document.getElementById(id).style.top=value+"px";}else  if(css_var=='bottom'){document.getElementById(id).style.bottom=value+"px";}else  if(css_var=='alpha'){document.getElementById(id).style.opacity=value/10;document.getElementById(id).style.filter='alpha(opacity='+value*10+')';}}}function submit_form(form_id,submit_id){if(document.forms[form_id]){if(submit_id!==undefined&&submit_id!==null){set_id_submit(submit_id,1);}document.forms[form_id].submit();}}function set_id_submit(submit_id){set_id_value(submit_id+'_js',1);}function get_id(id){return document.getElementById(id);}function copy_to_id(current,target){if(document.getElementById(target)){document.getElementById(target).value=current.value;}}function set_id_value(id,value){if(document.getElementById(id)){document.getElementById(id).value=value;}}function get_id_value(id){if(document.getElementById(id)){return document.getElementById(id).value;}return false;}function set_copy_paste(data){this._CORE_COPY_PASTE=data;}function get_copy_paste(){return _CORE_COPY_PASTE;}function get_name_values(id){if(document.getElementsByName(id)){var new_array=new Array();alert("Elementen: "+document.getElementsByName(id).length);for(var i=0;i<document.getElementsByName(id).length;i++){var obj=document.getElementsByName(id).item(i);new_array[obj.id]=obj.value;}return new_array;}return false;}function set_id_inner(id,value){if(document.getElementById(id)){document.getElementById(id).innerHTML=value;}}function get_id_inner(id){if(document.getElementById(id)){return document.getElementById(id).innerHTML;}}function add_id_inner(id,value){if(document.getElementById(id)){return document.getElementById(id).innerHTML+=value;}}function pre_id_inner(id,value){if(document.getElementById(id)){return document.getElementById(id).innerHTML=value+document.getElementById(id).innerHTML;}}function set_iframe_content(id,content){if(document.getElementById(id).contentWindow.document)document.getElementById(id).contentWindow.document.body.innerHTML=content;else    document.getElementById(id).contentDocument.body.innerHTML=content;}function set_iframe_content_id(id,content_id){if(document.getElementById(id).contentWindow.document){document.getElementById(id).contentWindow.document.open();document.getElementById(id).contentWindow.document.write(document.getElementById(content_id).value);document.getElementById(id).contentWindow.document.close();}else{document.getElementById(id).contentDocument.document.open();document.getElementById(id).contentDocument.document.write(document.getElementById(content_id).value);document.getElementById(id).contentDocument.document.close();}}function open_window(url){var load=window.open(url,'','scrollbars=yes,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');}function set_status(value){window.status='Welcome';return true;}function submit_form_legacy(id,name_sumbmit){if(document.forms[id]){if(name_sumbmit)document.getElementById(name_sumbmit).value='1';document.forms[id].submit();}}function insert_tags(element_id,tag_open,tag_close,message,text){if(!text)text="";var input=prompt(message,text);if(input!=null)document.getElementById(element_id).value=document.getElementById(element_id).value+tag_open+input+tag_close;}function confirm_click(msg){var status;if(msg!=null)status=confirm(msg);else    status=confirm('Confirm Click!');return status;}function clear_array(id){if(document.getElementById(id)){}}function is_array(obj){return obj!=null&&obj!=undefined&&obj.constructor==Array;}function is_object(obj){return obj.constructor==Object;}function print_page(){window.print();}function hash_value(value,hash_string){var hash;if(hash_string!=null&&hash_string!="")hash=hash_string.split(";");else    hash=window.location.hash.substr(1).split(";");for(id in hash){var variable_value=hash[id].split(":");if(variable_value[0]!=undefined){if(value==variable_value[0]){if(variable_value[1]!=undefined){return variable_value[1];}else{return true;}}}}return false;}function center_margin(id){var w=parseInt(document.getElementById(id).clientWidth);var h=parseInt(document.getElementById(id).clientHeight);document.getElementById(id).style.marginLeft=-(w/2)+"px";document.getElementById(id).style.marginTop=-(h/2)+"px";}function set_money(id,oob_string){oob_string=oob_string==null?"Out of Bounds":oob_string;singles=parseInt(document.getElementById(id+'_singles').value);cents_string=document.getElementById(id+'_cents').value;cents=0;if(cents_string.length==2&&cents_string.charAt(0)=="0"){cents=parseInt(cents_string.charAt(1));}else{cents=parseInt(cents_string);}if(cents<0||cents>99||isNaN(singles)||isNaN(cents)){if(cents<0||cents>99||isNaN(cents)){document.getElementById(id+'_cents').value=0;cents=0;}if(isNaN(singles)){document.getElementById(id+'_singles').value=0;singles=0;}alert(oob_string);}if(cents>=0&&cents<10){document.getElementById(id+'_cents').value="0"+cents;}amount=(singles * 100)+cents;document.getElementById(id).value=amount;}function return_money(value,sep){value=""+value;sep=sep?sep:",";singles="0";cents="";l=value.length;if(l==1){cents+="0"+value;}else  if(l==2){cents+=value;}else{singles=value.substr(0,(l-2));cents=value.substr((l-2),2);}return singles+sep+cents;}function value_null(value,quote){return_val=quote!=null?quote+value+quote:value;return value==null?"null":(value==undefined?"undefined":return_val);}function isNull(value,empty_string,false_on_zero){empty_string=empty_string||true;false_on_zero=false_on_zero||true;int_value=parseInt(value);if(false_on_zero&&int_value===0&&int_value.toString()==value.toString())return false;if(empty_string&&value=="")return true;else  if(value==null||value==undefined)return true;else  return false;}function dvalue(value,def_value,empty_string,false_on_zero){empty_string=empty_string||true;false_on_zero=false_on_zero||true;return isNull(value,empty_string,false_on_zero)?def_value:value;}function string_array(string){var position=0;var elem_count=0;var value_count=0;var elem_array=new Array();var value_array=new Array();while((pos=string.indexOf(":",position))!=-1){var length=string.substr(position,pos-position);var value=string.substr(pos+1,length);value_array[value_count]=value;position=pos+1+value.length;value_count++;if(string.substr(position,1)==";"){elem_array[elem_count]=value_array;value_array=new Array();value_count=0;elem_count++;}position++;}elem_array[elem_count]=value_array;return elem_array;}function decode_string_options(string){var return_array=new Array();if(string.substr(0,2)=="::"){new_string=string.substr(2);return_array=string_array(new_string);}else{elem_count=0;elem_array=string.split(";");temp_array=new Array();if(elem_array.length>0){for(var values in elem_array){temp_array[elem_count]=elem_array[values].split(":");elem_count++;}}if(elem_count>0){return_array=temp_array;}}return return_array;}function create_options_string(id,skip,new_format){skip_entry=dvalue(skip,false);new_format=dvalue(new_format,true);return_string=new_format?"::":"";entries=true;entry_count=0;while(entries){if(document.getElementById(id+"_"+entry_count+"_0")){if(skip_entry!==entry_count){element_count=0;elements=true;elements_raw="";elements_string="";while(elements){if(document.getElementById(id+"_"+entry_count+"_"+element_count)){if(element_count==0){elements_string+=entry_count!=0?";":"";}elem_value=document.getElementById(id+"_"+entry_count+"_"+element_count).value;elements_string+=element_count!=0?":":"";elements_string+=new_format?elem_value.length+":":"";elements_string+=elem_value;elements_raw+=elem_value;element_count++;}else{elements=false;}}if(elements_raw!=""||!document.getElementById(id+"_last_"+entry_count)){return_string+=elements_string}}entry_count++;}else{entries=false;}}return return_string;}function set_options_string(id,class_name,h_names,v_vars,v_names,v_max,seperator,skip){return_val=create_options_string(id,skip,true);set_id_value(id,return_val);create_options(id,class_name,h_names,v_vars,v_names,v_max,seperator);}function set_options_string_copy(id,class_name,h_names,v_vars,v_names,v_max,seperator,skip){set_id_value(id,get_id_value(id+"_copy"));create_options(id,class_name,h_names,v_vars,v_names,v_max,seperator);}function create_options(id,class_name,h_names,v_vars,v_names,v_max,seperator){input_value=document.getElementById(id).value.substr(0,1)==";"?document.getElementById(id).value.substr(1):document.getElementById(id).value;input_array=decode_string_options(input_value);h_names_array=!isNull(h_names)?decode_string_options(h_names):new Array();v_vars_array=!isNull(v_vars)?decode_string_options(v_vars):new Array();v_names_array=!isNull(v_names)?decode_string_options(v_names):new Array();h_max=h_names_array.length>1?h_names_array.length:(v_names_array.length>0||v_vars_array.length>0?2:1);v_max=parseInt(dvalue(v_max,99));seperator=dvalue(seperator,"<br />");refresh_string="onchange='set_options_string( \""+id+"\","+value_null(class_name, '"')+","+value_null(h_names, '"')+","+value_null(v_vars, '"')+","+value_null(v_names, '"')+","+value_null(v_max, '"')+","+value_null(seperator, '"')+");'";v_count=0;h_count=1;output="<div class='"+dvalue(class_name,'dynamic_options')+"'>";if(h_names_array.length>0){if(v_names_array.length>0){output+="<div class='inline-block w_125'></div>";}for(var name in h_names_array){output+="<div class='inline-block w_125'>"+h_names_array[name]+"</div>";}output+=seperator;}if(input_array.length>0){for(var i_vals in input_array){if(input_array[i_vals]!=""&&((i_vals<v_max&&v_names_array.length==0)||i_vals<v_names_array.length)){if(v_names_array[i_vals]){output+="<div class='inline-block w_125'>"+v_names_array[i_vals]+"</div>";}else  if(v_names_array.length>0){output+="<div class='inline-block w_125'></div>";}i_split=input_array[i_vals];var i_val=0;for(i_val in i_split){if(i_val==0&&v_vars_array[i_vals])output+="<div class='inline-block w_125'><input type='text' id='"+id+"_"+i_vals+"_"+i_val+"' value='"+v_vars_array[i_vals]+"' disabled='disabled' "+refresh_string+" /></div>";else        output+="<div class='inline-block w_125'><input type='text' id='"+id+"_"+i_vals+"_"+i_val+"' value='"+i_split[i_val]+"' "+refresh_string+" /></div>";}i_val++;h_count=i_val>h_count?i_val:h_count;for(i_val;i_val<h_max;i_val++){output+="<div class='inline-block w_125'><input type='text' id='"+id+"_"+i_vals+"_"+i_val+"' value='' "+refresh_string+" /></div>";}if(!v_vars_array[i_vals]){delete_string="onclick='set_options_string( \""+id+"\","+value_null(class_name, '"')+","+value_null(h_names, '"')+","+value_null(v_vars, '"')+","+value_null(v_names, '"')+","+value_null(v_max, '"')+","+value_null(seperator, '"')+","+v_count+");'";output+="<span class='dynamic_del' "+delete_string+">X</span>";}output+=seperator;v_count++;}}}if(v_count<v_max){while(v_names_array[v_count]){output+="<div class='inline-block w_125'>"+v_names_array[v_count]+"</div>";for(i_val=0;i_val<h_max;i_val++){if(i_val==0&&v_vars_array[v_count])output+="<div class='inline-block w_125'><input type='text' id='"+id+"_"+v_count+"_"+i_val+"' value='"+v_vars_array[v_count]+"' disabled='disabled' "+refresh_string+" /></div>";else        output+="<div class='inline-block w_125'><input type='text' id='"+id+"_"+v_count+"_"+i_val+"' value='' "+refresh_string+" /></div>";}if(!v_vars_array[v_count]){delete_string="onclick='set_options_string( \""+id+"\","+value_null(class_name, '"')+","+value_null(h_names, '"')+","+value_null(v_vars, '"')+","+value_null(v_names, '"')+","+value_null(v_max, '"')+","+value_null(seperator, '"')+","+v_count+");'";output+="<span class='dynamic_del' "+delete_string+">X</span>";}output+=seperator;v_count++;}}if(v_count<v_max){while(v_vars_array[v_count]){i_val=0;output+="<div class='inline-block w_125'><input type='text' id='"+id+"_"+v_count+"_"+i_val+"' value='"+v_vars_array[v_count]+"' disabled='disabled' "+refresh_string+" /></div>";for(i_val=1;i_val<h_max;i_val++){output+="<div class='inline-block w_125'><input type='text' id='"+id+"_"+v_count+"_"+i_val+"' value='' "+refresh_string+" /></div>";}output+=seperator;v_count++;}}if(v_count<v_max){if(v_names_array.length>0){output+="<div class='inline-block w_125'></div>";}h_max=h_count>h_max?h_count:h_max;for(i_val=0;i_val<h_max;i_val++){output+="<div class='inline-block w_125'><input type='text' id='"+id+"_"+v_count+"_"+i_val+"' value='' /></div>";}onclick_string="onclick='set_options_string( \""+id+"\","+value_null(class_name, '"')+","+value_null(h_names, '"')+","+value_null(v_vars, '"')+","+value_null(v_names, '"')+","+value_null(v_max, '"')+","+value_null(seperator, '"')+");'";output+="<span class='dynamic_add' "+onclick_string+">+</span><input type='hidden' id='"+id+"_last_"+v_count+"' value='"+v_count+"' />";}onclick_string="onclick='set_options_string_copy( \""+id+"\","+value_null(class_name, '"')+","+value_null(h_names, '"')+","+value_null(v_vars, '"')+","+value_null(v_names, '"')+","+value_null(v_max, '"')+","+value_null(seperator, '"')+");'";output+="<div class='inline-block w_75'><input type='text' id='"+id+"_copy' value='' style='width:70px;background-color: transparent;'/></div><span class='dynamic_copy' onclick='set_id_value( \""+id+"_copy\",get_id_value(\""+id+"\"));set_copy_paste(get_id_value(\""+id+"\"));'>C</span>&nbsp;<span class='dynamic_copy' onclick='set_id_value( \""+id+"_copy\", get_copy_paste() );'>P</span>&nbsp;<span class='dynamic_copy' "+onclick_string+">S</span>";output+="</div>";document.getElementById(id+"_options").innerHTML=output;}function calc_discount(recommended_id,price_id,output_id,output_string){if(document.getElementById(recommended_id).value>=0&&document.getElementById(price_id).value>=0){recom=parseInt(document.getElementById(recommended_id).value);price=parseInt(document.getElementById(price_id).value);discount=recom-price;discountp=recom!=0?(discount/recom)* 100:0;output=output_string+return_money(discount,",")+" ("+discountp.toFixed(2)+"%)";document.getElementById(output_id).innerText=output;}}function calc_price(price_id,discount_id,output_id){if(document.getElementById(price_id).value&&document.getElementById(discount_id).value){price=parseInt(document.getElementById(price_id).value);discount=parseInt(document.getElementById(discount_id).value);sale_price=discount!=0?Math.floor(price *(1-(discount/10000))):price;output=return_money(sale_price,",");document.getElementById(output_id).innerText=output;}}function iframe_parent_url(url){document.location=url;}function parent_url(url){parent.iframe_parent_url(url);}function show_loc(obj){rs="";sep="\r\n";rs+="W: "+obj.clientWidth+sep;rs+="H: "+obj.clientHeight+sep;rs+="L: "+obj.offsetLeft+sep;rs+="R: "+obj.offsetRight+sep;rs+="T: "+obj.offsetTop+sep;rs+="B: "+obj.offsetBottom+sep;rs+="SL: "+obj.style.left+sep;rs+="SR: "+obj.style.right+sep;rs+="ST: "+obj.style.top+sep;rs+="SB: "+obj.style.bottom+sep;alert(rs);}function browser_version(version){return navigator.appVersion.indexOf(version)!=-1?true:false;}function time(){return Math.round((new Date()).getTime()/1000);}function unix_time(){return Math.round((new Date()).getTime()/1000);}function to_date(unixtime){return new Date(unixtime*1000);}function quick_date(unixtime){var date=to_date(unixtime);var hours=date.getHours();var minutes=date.getMinutes();var seconds=date.getSeconds();return pad(hours,2)+':'+pad(minutes,2)+'.'+pad(seconds,2);}function str2html(str){var el=document.createElement("div");el.innerText=el.textContent=str;str=el.innerHTML;delete el;return str;}function validate_email(email){var reg=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;if(reg.test(email)==false){return false;}else{return true;}}function trim(str){var str=str.replace(/^\s\s*/,''),ws=/\s/,i=str.length;while(ws.test(str.charAt(--i)));return str.slice(0,i+1);}function xml2dom_test(xml_string){xmlDoc=null;xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async="false";xmlDoc.loadXML(xml_string);alert("You have error ( "+xmlDoc.parseError.errorCode+" ) :"+xmlDoc.parseError.line+":"+xmlDoc.parseError.reason);return xmlDoc;}function xml2dom(xml_string){xmlDoc=null;try{if(window.DOMParser){parser=new DOMParser();xmlDoc=parser.parseFromString(xml_string,"text/xml");}else{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async="false";xmlDoc.loadXML(xml_string);}}catch(e){alert("Error while parsing XML");}return xmlDoc;}function notify_flash(message,throw_alert,not_on_focus){not_on_focus=not_on_focus||true;alert=alert||true;if(!_HAS_FOCUS||!not_on_focus){if(_SUPPORT_SITE_MODE){if(throw_alert)alert(message);window.external.msSiteModeActivate();}else{if(throw_alert)alert(message);}}}function notify_taskbar(image,message,throw_alert,not_on_focus){not_on_focus=not_on_focus||true;if(!_HAS_FOCUS||!not_on_focus){if(_SUPPORT_SITE_MODE){window.external.msSiteModeSetIconOverlay(image,message);window.external.msSiteModeActivate();}else{if(throw_alert)alert(message);}}}function notify_message(image,title,message,not_on_focus){not_on_focus=not_on_focus||true;if(!_HAS_FOCUS||!not_on_focus){if(_SUPPORT_WEBKIT_NOTIFICATIONS){if(window.webkitNotifications.checkPermission()==0){window.webkitNotifications.createNotification(image,title,message).show();}else{window.webkitNotifications.requestPermission();}}}}function _request_notification_permission(type,id){if(_SUPPORT_WEBKIT_NOTIFICATIONS&&window.webkitNotifications.checkPermission()!=0){switch(type){case 'link':if(id)set_id_inner(id,"<a href='javascript:window.webkitNotifications.requestPermission();'>Zet Notificaties Aan</a>");break;default:window.webkitNotifications.requestPermission();}}}function add2url(url,params,value){q_pos=url.indexOf("?");return url+((q_pos!=-1)?(q_pos+1<url.length?"&":""):"?")+params+(!isNull(value)?"="+value:"");}function copyRows(table,row_start,row_length,row_insert){var ob_table=document.getElementById(table);var nameID=false;for(var i=0;i<row_length;i++){nameID=copyRowData(ob_table.getElementsByTagName('tr')[row_start+i],ob_table.insertRow(row_insert+i),nameID);}}function copyRowData(rowOld,rowNew,nameID){rowNew.className=rowOld.className;for(var i=0;i<rowOld.cells.length;i++){rowCopy=rowOld.cells[i].cloneNode(true);nameID=changeElementNames(rowCopy,nameID);rowNew.appendChild(rowCopy);}return nameID;}function changeElementName(obj,tagName,nameID){var nodeList=obj.getElementsByTagName(tagName);for(var i=0;i<nodeList.length;i++){var nameArray=getNameArray(nodeList[i].name);if(!nameID&&auto_gen_table){nameID=findElementNameIDNext(nameArray[0]);}nodeList[i].name=getNameFromArray(changeNameKey(nameArray,nameID));if(nodeList[i].value)nodeList[i].value="";}return nameID;}function findElementNameIDNext(baseName){var returnVal=0;if(auto_gen_table&&auto_gen_table[baseName]){auto_gen_table[baseName]+=1;returnVal=auto_gen_table[baseName];}return returnVal}function changeElementNames(obj,nameID){nameID=changeElementName(obj,"input",nameID);changeElementName(obj,"select",nameID);changeElementName(obj,"textarea",nameID);return nameID;}function getNameArray(nameString){var returnArray=nameString.split("[");for(var i in returnArray){returnArray[i]=returnArray[i].replace("]", "");}return returnArray;}function getNameFromArray(nameArray){for(var i in nameArray){nameArray[i]=i!=0?nameArray[i]+"]":nameArray[i];}return nameArray.join("[");}function changeNameKey(nameArray,newID){if(nameArray[1])nameArray[1]=newID;return nameArray;}function deleteRows(table,obj,lenght){var rowIndex=obj.parentNode.parentNode.rowIndex;for(var i=0;i<lenght;i++){get_id(table).deleteRow(rowIndex);}}function addRows(table,obj,length){var rowIndex=obj.parentNode.parentNode.rowIndex;copyRows(table,rowIndex-length,length,rowIndex);}var _SUPPORT_SITE_MODE=false;var _SUPPORT_WEBKIT_NOTIFICATIONS=false;var _HAS_FOCUS=false;function _check_support(){_check_support_site_mode();_check_support_webkit_notification();}function _check_support_site_mode(){try{if(window.external.msIsSiteMode()){_SUPPORT_SITE_MODE=true;}}catch(e){_SUPPORT_SITE_MODE=false;}}function _check_support_webkit_notification(){try{if(window.webkitNotifications){_SUPPORT_WEBKIT_NOTIFICATIONS=true;}}catch(e){_SUPPORT_WEBKIT_NOTIFICATIONS=false;}}_check_support();function core_ajax(){this.xmlHttp;this.core_ajax=function(){try{xmlHttp=new XMLHttpRequest();}catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){alert('AJAX: Loading Error');return false;}}}};this.ajax_send=function(type,link,async,function_name){if(link!=null){xmlHttp.abort();xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){return_value=xmlHttp.responseText;if(return_value!='NULL')function_name(return_value);}};xmlHttp.open(type,link,async);xmlHttp.send(null);}};core_ajax();}ajax=new core_ajax();var expcol_element_array=new Array();function expcol_reset_all(exclude,group_id){for(key in expcol_element_array){array_key=key;if(expcol_element_array[array_key]!=undefined&&expcol_element_array[array_key][0]==0&&(exclude!=key&&(expcol_element_array[array_key][9]==group_id||group_id==null))){expcol_element_array[array_key][0]=-1;expcol_element(array_key,expcol_element_array[key][1],expcol_element_array[key][2],expcol_element_array[key][3],expcol_element_array[key][4],expcol_element_array[key][5],expcol_element_array[key][6],(expcol_element_array[key][7]-1),expcol_element_array[key][7],expcol_element_array[key][8]);}}}function expcol_element_unq(slide_id,group_id,width_dist,height_dist,width_slide,height_slide,ani_fps,ani_time){expcol_reset_all(slide_id,group_id);expcol_element_go(slide_id,group_id,width_dist,height_dist,width_slide,height_slide,ani_fps,ani_time);}function expcol_element_go(slide_id,group_id,width_dist,height_dist,width_slide,height_slide,ani_fps,ani_time){var frames=(ani_time/1000)* ani_fps;var ani_speed=(ani_time/frames);with(document.getElementById(slide_id).style){var width_int=display=='none'?0:(parseInt(document.getElementById(slide_id).clientWidth));var height_int=display=='none'?0:(parseInt(document.getElementById(slide_id).clientHeight));if(expcol_element_array[slide_id]==undefined){width_dist=width_dist===true?-1 * width_int:width_dist;height_dist=height_dist===true?-1 * height_int:height_dist;expcol_element_array[slide_id]=new Array(10);expcol_element_array[slide_id][0]=1;expcol_element_array[slide_id][1]=width_int;expcol_element_array[slide_id][2]=height_int;expcol_element_array[slide_id][3]=width_dist;expcol_element_array[slide_id][4]=height_dist;expcol_element_array[slide_id][5]=width_slide;expcol_element_array[slide_id][6]=height_slide;expcol_element_array[slide_id][7]=frames;expcol_element_array[slide_id][8]=ani_speed;expcol_element_array[slide_id][9]=group_id;expcol_element(slide_id,width_int,height_int,width_dist,height_dist,width_slide,height_slide,1,frames,ani_speed);}else  if(expcol_element_array[slide_id][0]==0){expcol_element_array[slide_id][0]=-1;expcol_element(slide_id,expcol_element_array[slide_id][1],expcol_element_array[slide_id][2],expcol_element_array[slide_id][3],expcol_element_array[slide_id][4],width_slide,height_slide,(frames-1),frames,ani_speed);}else{expcol_element_array[slide_id][0]*=-1;}}}function  expcol_element(slide_id,width_start,height_start,width_dist,height_dist,width_slide,height_slide,frame,frames,ani_speed){with(document.getElementById(slide_id).style){overflow='hidden';if(frame>0&&frame<frames){if(width_slide==true&&width_dist!=0){width=width_start+(frame *(width_dist/frames))+"px";maxWidth=width;}if(height_slide==true&&height_dist!=0){height=height_start+(frame *(height_dist/frames))+"px";maxHeight=height;}frame+=expcol_element_array[slide_id][0];setTimeout("expcol_element( '"+slide_id+"', "+width_start+", "+height_start+", "+width_dist+", "+height_dist+", "+width_slide+", "+height_slide+", "+frame+", "+frames+", "+ani_speed+" ) ",ani_speed);}else  if(frame==0){if(width_slide==true){width=width_start+"px";maxWidth=width;}if(height_slide==true){height=height_start+"px";maxHeight=height;}expcol_element_array[slide_id]=undefined;}else  if(frame==frames){if(width_slide==true){width=width_start+(width_slide?width_dist:0)+"px";maxWidth=width;}if(height_slide==true){height=height_start+(height_slide?height_dist:0)+"px";maxHeight=height;}expcol_element_array[slide_id][0]=0;}display=width=='0px'||height=='0px'?'none':'';}}function policy_number_check(number,url,key){url=url+"?args[0]="+number+"&ajax_key="+key;ajax.ajax_send("GET",url,true,policy_checker);}function policy_checker(return_val){if(return_val==="false"){set_id_inner('policy_number_status','Nummer uniek!');document.getElementById('insurance_policy_number').style.backgroundColor='green';}else{set_id_inner('policy_number_status','Nummer bestaat al!');document.getElementById('insurance_policy_number').style.backgroundColor='red';}}function client_id_check(number,url,key){url=url+"?args[0]="+number+"&ajax_key="+key;ajax.ajax_send("GET",url,true,client_checker);}function client_checker(return_val){if(return_val==="false"){set_id_inner('client_id_status','Nummer uniek!');document.getElementById('client_id').style.backgroundColor='green';}else{set_id_inner('client_id_status','Nummer bestaat al!');document.getElementById('client_id').style.backgroundColor='red';}}var _PANEL_ELEMENT_ARRAY=new Array();var _PANEL_ELEMENT_COUNTER=0;var _PANEL_ELEMENT_CURRENT=0;var _PANEL_ELEMENT_ANIMATE_FPS=30;var _PANEL_ELEMENT_ANIMATE_TIME=1000;var _PANEL_ELEMENT_ANIMATE_FRAMES=(_PANEL_ELEMENT_ANIMATE_TIME/1000)* _PANEL_ELEMENT_ANIMATE_FPS;var _PANEL_IMAGE_MAX=20;function load_panel(panel_id,width,height,top,left){top=top==null?0:top;left=left==null?0:left;document.write("<div id ='"+panel_id+"' class='hover animated_panel'></div><script type='text/javascript'>set_css('"+panel_id+"', 'width','"+width+"');set_css('"+panel_id+"', 'height','"+height+"');set_css('"+panel_id+"', 'left','"+left+"');set_css('"+panel_id+"', 'top','"+top+"');</script>");}function load_panel_image(panel_id,url,title,subtitle,link){if(_PANEL_ELEMENT_COUNTER<_PANEL_IMAGE_MAX){var display_value=_PANEL_ELEMENT_COUNTER==0?100:0;var new_panel="";new_panel+="<div class='hover' id='"+(panel_id+"_"+_PANEL_ELEMENT_COUNTER)+"' style='width:100%;height:100%;background-image:url(\"../"+url+"\");background-repeat:no-repeat;position:absolute;top:0px;left:0px;opacity:"+( display_value / 100 )+";filter:alpha(opacity="+ display_value+");zIndex:"+display_value+";' onclick=\"window.location = '"+link+"';\">";new_panel+="<div class='hover' onclick=\"window.location = '"+link+"';\" style='padding: 5px;position: absolute; bottom: 0px; right: 0px; width: 400px; height: 80px;background-color:gray;opacity:0.9;filter:alpha(opacity=90)'><span style='font-size: 18pt; font-weight: bold; color: #05633f;font-style: italic;'>"+title+"</span>";new_panel+=" <br /> <span style='color:white;background-color:transparent;'>"+subtitle+"</span>";new_panel+="</div>";new_panel+="</div>";document.getElementById(panel_id).innerHTML=new_panel+document.getElementById(panel_id).innerHTML;_PANEL_ELEMENT_COUNTER++;}else{alert('Too many images');}}function pyto(value){return Math.sqrt(10000-(value * value));}function rotate_panel(panel_id){setTimeout("animate_panel( '"+panel_id+"', 0 )",4000);}function animate_panel(panel_id,frame){if(frame<=_PANEL_ELEMENT_ANIMATE_FRAMES){var opacity_1=(100/_PANEL_ELEMENT_ANIMATE_FRAMES)* frame;var opacity_2=100-opacity_1;var current_panel=panel_id+"_"+_PANEL_ELEMENT_CURRENT;var next_element=_PANEL_ELEMENT_CURRENT+1<_PANEL_ELEMENT_COUNTER?_PANEL_ELEMENT_CURRENT+1:0;var next_panel=panel_id+"_"+next_element;document.getElementById(current_panel).style.opacity=opacity_2/100;document.getElementById(next_panel).style.opacity=opacity_1/100;if(opacity_2<10){document.getElementById(current_panel).style.zIndex=opacity_2;document.getElementById(next_panel).style.zIndex=opacity_1;}if(document.getElementById(current_panel).filters){document.getElementById(current_panel).filters.alpha.opacity=opacity_2;document.getElementById(next_panel).filters.alpha.opacity=opacity_1;}setTimeout("animate_panel( '"+panel_id+"', "+(frame+1)+" )",(_PANEL_ELEMENT_ANIMATE_TIME/_PANEL_ELEMENT_ANIMATE_FRAMES));}else{_PANEL_ELEMENT_CURRENT=_PANEL_ELEMENT_CURRENT+1<_PANEL_ELEMENT_COUNTER?_PANEL_ELEMENT_CURRENT+1:0;rotate_panel(panel_id);}}
