var t_color var b_color var p_color var bg_color browsername=navigator.appName; if (browsername.indexOf("Netscape")!=-1) {browsername="NS"} else {if (browsername.indexOf("Microsoft")!=-1) {browsername="MSIE"} else {browsername="N/A"}}; browser="0"; if (navigator.appVersion.indexOf("2.0")!=-1) {browser="2"}; if (navigator.appVersion.indexOf("3.0")!=-1) {browser="3"}; if (navigator.appVersion.indexOf("4.0")!=-1) {browser="4"}; if (navigator.appVersion.indexOf("5.0")!=-1) {browser="5"}; if (navigator.appVersion.indexOf("6.0")!=-1) {browser="6"}; function createPreview() { NewWindow = window.open("", "TheWindow" , "toolbar=no,width=350,height=250,top=100,left=10,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no") writepreview() } function writepreview() { NewWindow.document.write(""); NewWindow.document.write("
") NewWindow.document.write("
") NewWindow.document.write("") NewWindow.document.write("") NewWindow.document.write("") NewWindow.document.write("") NewWindow.document.write("
 ") NewWindow.document.write("
") NewWindow.document.write("
") NewWindow.document.write("") NewWindow.document.write("") NewWindow.document.write("") NewWindow.document.write("") NewWindow.document.write("
Seçtiğiniz renklere göre kartınız bu şekilde görünüyor, eğer renkleri sevmediyseniz ve değiştirmek istiyorsanız, lütfen bu pencereyi kapatın ve paletlerden yeni renkler seçerek tekrar deneyiniz.") NewWindow.document.write("") NewWindow.document.write("

Pencereyi Kapat
") NewWindow.document.write("
") NewWindow.document.write("

") NewWindow.document.write("
") NewWindow.document.write("
") NewWindow.document.write("
") NewWindow.document.write(" 
") NewWindow.document.write("
") NewWindow.document.write("
") NewWindow.document.close() NewWindow.focus() } function createWindow(pic) { NewWindow = window.open("", 'TheWindow','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=yes,width=400,height=325,top=10,left=10') writetowindow(pic) } function writetowindow(pic) { NewWindow.document.write("

") NewWindow.document.write("

") NewWindow.document.write("

") NewWindow.document.write("") NewWindow.document.write("

Pencereyi Kapat") NewWindow.document.write("
") NewWindow.document.write("

") NewWindow.document.close() NewWindow.focus() } function showStamp() { if(browsername == "NS" && browser < 5) { thestamp = document.cardform.stamp.selectedIndex; the_image = document.cardform.stamp[thestamp].value; NewWindow = window.open("", 'TheWindow','toolbar=no,width=100,height=100,top=250,left=100,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no') writetowindow(the_image) } else { thestamp = document.cardform.stamp.selectedIndex; document.images.stamppic.src = document.cardform.stamp[thestamp].value; } } function showIcon() { if(browsername == "NS" && browser < 5) { theicon = document.cardform.icon.selectedIndex; the_icon = document.cardform.icon[theicon].value; NewWindow = window.open("", 'TheWindow','toolbar=no,width=100,height=100,top=250,left=100,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no') writetowindow(the_icon) } else { theicon = document.cardform.icon.selectedIndex; document.images.iconpic.src = document.cardform.icon[theicon].value; } } function showCard() { var cpic; thecard = document.cardform.card_type.selectedIndex; cpic = document.cardform.card_type[thecard].value; cpic = "images/cardexamples/" + cpic + ".gif"; if(browsername == "NS" && browser < 5) { thestamp = document.cardform.stamp.selectedIndex; the_image = document.cardform.stamp[thestamp].value; NewWindow = window.open("", 'TheWindow','toolbar=no,width=100,height=100,top=250,left=100,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no') writetowindow(cpic) } else { document.images.pagepic.src = cpic; } } function changePage() { var go = document.cardform.pages.selectedIndex; location.href = document.cardform.pages.options[go].value; return false; } function textCounter(field, countfield, maxlimit) { if (field.value.length > maxlimit) // if too long...trim it! field.value = field.value.substring(0, maxlimit); // otherwise, update 'characters left' counter else countfield.value = maxlimit - field.value.length; } function selectcolor(color, type) { if(type == 1) { document.cardform.text_color.value = color t_color = color } if(type == 2) { document.cardform.back_color.value = color bg_color = color } if(type == 3) { document.cardform.card_border_color.value = color b_color = color } if(type == 4) { document.cardform.page_color.value = color p_color = color } }