var jsStandaardInvoertaal = 'NL'; // Deze functie verwijdert de laatste 'aantal' characters function DropLastChars(str, aantal) { if(str.length>aantal) { str = str.substr(0,str.length-aantal); } return str; } function OpenHelpWin( HoofdOnd, SubOnd ){ theURL = "http://www.zeldzaam.net/dialogs/help.asp?HoofdOnderdeel=" + HoofdOnd + "&SubOnderdeel=" + SubOnd; var win = window.open(theURL,"HelpWin",'left=500, top=250,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=350,height=400'); } function newWin(url, name, w, h) { w = 760; h = 660; l = (screen.availWidth-10 - w) / 2; t = (screen.availHeight-40 - h) / 2; //t = 0; features = "width="+w+",height="+h+",left="+l+",top="+t; features += ",screenX="+l+",screenY="+t; features += ",scrollbars=1,resizable=1,location=0"; features += ",menubar=0,toolbar=0,status=0"; window.open(url, name, features); } /* function ZoekKans( KlantID ){ if (KlantID>=0){ theURL = "/programs/crm/includes/get_kans.asp?KlantID=" + KlantID + "&" var win = window.open(theURL,"",'left=250, top=250,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=250'); win.setKans = this.setKans; } } function ZoekProjectvoorstel( KlantID ){ if (KlantID>=0){ theURL = "/programs/crm/get_projectvoorstel.asp?KlantID=" + KlantID + "&" var win = window.open(theURL,"",'left=250, top=250,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=250'); win.setProjectvoorstel = this.setProjectvoorstel; } } function ZoekProject( KlantID ){ alert("Hier wordt momenteel nog aan gewerkt"); return false; if (KlantID>=0){ theURL = "/programs/crm/includes/get_kans.asp?KlantID=" + KlantID + "&" window.open(theURL,"",'left=250, top=250,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=250'); } } */