function RH_navOver(nav) { nav.className = 'navOver'; } function RH_navOut(nav) { nav.className = 'nav'; } function RH_location(url) { document.location = url; } function RH_jump(e, disable) { if (disable) { e.disabled = 'disabled'; } RH_location(e.value); } function RH_popup(url, width, height) { var popup = window.open(url, 'VpsTurkiye', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=yes,resizable=no,copyhistory=no,width=' + width + ',height=' + height + ',left=' + ((screen.width / 2) - (width / 2)) + ', top=' + ((screen.height / 2) - (height / 2)) + ',screenX=' + ((screen.width / 2) - (width / 2)) + ',screenY=' + ((screen.height / 2) - (height / 2)) + ''); popup.focus();} function RH_loadImages() { if (document.images) { if (!document.imageArray) document.imageArray = new Array(); var i, j = document.imageArray.length, args = RH_loadImages.arguments; for(i = 0; i < args.length; i++) { if (args[i].indexOf("#") != 0) { document.imageArray[j] = new Image; document.imageArray[j++].src = args[i]; } } } } function RH_checkClick(l, e) { e = document.getElementById(e); if (e.value != 0) { e.value = '0'; l.className = 'checkbox'; } else { e.value = '-1'; l.className = 'checkboxselected'; } } function RH_inputOver(e) { /*e.style.border = '1px solid #AAA';*/ } function RH_inputOut(e) { /*e.style.border = '1px solid #CCC';*/ } function RH_inputBlur(e) { if (e.value != '') { if (RH_checkElement(e)) { //e.style.border = '1px solid #3366CC'; e.style.border = '1px solid #88AA88'; /* if (e.style.textAlign != 'right') { e.style.background = '#E4E4E4 url(\'http://www.vpsturkiye.com/images/symbol_ok.png\') no-repeat center right'; } else { e.style.background = '#E4E4E4 url(\'http://www.vpsturkiye.com/images/symbol_ok.png\') no-repeat center left'; } */ e.showerror = null; } else { e.style.border = '1px solid #FF0000'; /* if (e.style.textAlign != 'right') { e.style.background = '#E4E4E4 url(\'http://www.vpsturkiye.com/images/symbol_error.png\') no-repeat center right'; } else { e.style.background = '#E4E4E4 url(\'http://www.vpsturkiye.com/images/symbol_error.png\') no-repeat center left'; } */ setTimeout("document.getElementById('" + e.id + "').focus();", 1); e.select(); e.showerror = false; } } else { e.style.border = '1px solid #CCC'; e.style.background = '#E4E4E4'; e.showerror = null; } } function RH_inputAdd() { var i, e, args = RH_inputAdd.arguments; for(i = 0; i < args.length; i++) { if (args[i].indexOf("#") != 0) { e = document.getElementById(args[i]); e.onblur = function () { RH_inputBlur(this); } e.onmouseover = function () { RH_inputOver(this); } e.onmouseout = function () { RH_inputOut(this); } } } } function RH_checkAdd() { var i, e, args = RH_checkAdd.arguments; for(i = 0; i < args.length; i++) { if (args[i].indexOf("#") != 0) { var e = document.getElementById(args[i]).parentNode; e.onmouseover = function () { RH_inputOver(this); } e.onmouseout = function () { RH_inputOut(this); } } } } function RH_checkForm(e) { for (i = 0; i < e.elements.length; i++) { if (e.elements[i].type == 'text' || e.elements[i].type == 'textarea') RH_inputBlur(e.elements[i]); } } function RH_elementShowHide(e) { if (e.style.display == 'none') { e.style.display = 'block'; } else { e.style.display = 'none'; } }