﻿// JScript File
var popup="Bu sayfayı kopyalayamazsınız."; 

function noway(go) { if 
(document.all) { if (event.button == 2) { alert(popup); return false; } } if (document.layers) 
{ if (go.which == 3) { alert(popup); return false; } } } if (document.layers) 
{ document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=noway; // --> 

function openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function tellAFriend(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function enterClicked(o, btn)
{
	var bt = document.getElementById(btn); 
	if (typeof bt == 'object')
	{ 
		if(navigator.appName.indexOf("Netscape")>(-1))
		{ 
			if (o.keyCode == 13)
			{ 
				bt.click(); 
				return false; 
			} 
		} 
		
		if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1))
		{ 
			if (event.keyCode == 13)
			{ 
				bt.click(); 
				return false; 
			} 
		} 
	} 
}

function checkTextbox(o)
{
    tbox = o;
    
    if (tbox.value == '')
        tbox.value = '1';
}

function popupddrivetip(n)
{
    switch (n)
    {
        case 0:
        {
            ddrivetip('This item is UNIQUE!<br />You <b>can not</b> order more than 1 peace.','#adff2f');
            break;
        }
        default:
        {
            ddrivetip('','#fd4400');
            break;
        }
    }
}

function openZoomWindow() {
    image_filename = document.getElementById('PhotoMainImage').src;
    openZoomWindow2('ProductPhotoZoom.aspx?imageUrl=' + image_filename.replace('/Photos/', '/OriginalPhotos/'));
}

function openZoomWindow2(url)	{
	    var openZoomWindow = open(url,"ZoomWindow",'status=0,scrollbars=1,resizable=1,width=500,height=500,top=50,left=50');
}
