var popupWinNumbers = 0;
function MM_openBrWindow(theURL,winName,features) 
{ //v2.0

  winName = winName + popupWinNumbers;
  window.open(theURL,winName,features);
  
  popupWinNumbers++;
}

function openDetail(sayfa2)
{
    open(sayfa2,'window3','left=20,top=20,width=500,height=500,scrollbars=1,status=1')
}

function fineresize()
{
   
    while (document.body.clientHeight < document.body.scrollHeight || document.body.clientWidth < document.body.scrollWidth)
    {	
        var widthDiff = document.body.scrollWidth - document.body.clientWidth;
        var heightDiff = document.body.scrollHeight - document.body.clientHeight;
        //var newWidth= document.body.clientWidth + widthDiff;
        //var newHeight = document.body.clientHeight + heightDiff 
        if (widthDiff>0)
            widthInc=5;
        else
            widthInc=0;
        if (heightDiff>0)
            heightInc=5;
        else
            heightInc=0;
            
	    window.resizeBy(widthInc,heightDiff);
	    //window.resizeTo(newWidth,newHeight);
	   
    }
}

function resizemyWindow(width,height)
{    
    
    window.resizeTo(width,height);
    myWindowWidth = width;
    myWindowHeight = height;
    if( typeof( window.innerWidth ) == 'number' ) 
    {    
      myinnerWidth = window.innerWidth;
      myinnerHeight = window.innerHeight;
    } 
	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
	{
	    //IE 6+ in 'standards compliant mode'
	    myinnerWidth = document.documentElement.clientWidth;
	    myinnerHeight = document.documentElement.clientHeight;
	} 
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
	{
	    //IE 4 compatible
	    myinnerWidth = document.body.clientWidth;
	    myinnerHeight = document.body.clientHeight;
	}

     if (myinnerHeight!=height)
   myWindowHeight = myWindowHeight + (height-myinnerHeight);
   window.resizeTo(width,myWindowHeight);      
}

function cvvBox(mode)
{
	if (mode == 'show'){
		document.getElementById("cvv").style.display = 'block';
	}
	else {
		document.getElementById("cvv").style.display = 'none';
	}
}