
var newwindowA = '';

function newWin(strUrl,strName,w,h,s,r,m,l,st) {

off1(); // Same as h keypress

if (/WebKit/i.test(navigator.userAgent)) {

		var kitName = "applewebkit/";
		var tempStr = navigator.userAgent.toLowerCase();
		var pos = tempStr.indexOf(kitName);
		var isAppleWebkit = (pos != -1);
		
		var kitVersion = tempStr.substring(pos + kitName.length,tempStr.length);
		kitVersion = kitVersion.substring(0,kitVersion.indexOf(" "));
		
 		        if (kitVersion < 416.12) {
		      
		          if (document.getElementById('d3d'))  {// Correct this Fucking mess up with Safari and 3d schockwave, again... FUCK !
    
                    var strFeature = 'width=' + w + ',height=' + (h + 30) + ',scrollbars=' + s + ',resizable=' + r + ',menubar=' + m + ',location=' + l + ',status=' + st;
    
                }
            
                else {// If kitversions ok but If no 3d
    
                    var strFeature = 'width=' + w + ',height=' + h + ',scrollbars=' + s + ',resizable=' + r + ',menubar=' + m + ',location=' + l + ',status=' + st;
        
                 }
	          }
		
	else {// If kitVersion > 416.12
    
        var strFeature = 'width=' + w + ',height=' + (h + 10) + ',scrollbars=' + s + ',resizable=' + r + ',menubar=' + m + ',location=' + l + ',status=' + st;
        
        }
	}


else if (/camino/i.test(navigator.userAgent)) {// Tested in Camino Version 2007022813 (1.0.4)

        var strFeature = 'width=' + w + ',height=' + (h + 30) + ',scrollbars=' + s + ',resizable=' + r + ',menubar=' + m + ',location=' + l + ',status=' + st;

	}

else {// If ! Webkit

    var strFeature = 'width=' + w + ',height=' + h + ',scrollbars=' + s + ',resizable=' + r + ',menubar=' + m + ',location=' + l + ',status=' + st;

    }
    
    newwindowA = window.open(strUrl, 'strName', strFeature);
    

		
		if (!newwindowA.opener) newwindowA.opener = self;
	
	if (window.focus) {newwindowA.focus()}
	
	
	return false;

    
}


function noWin() {



if (!newwindowA.closed && newwindowA.location) {
		
		
		newwindowA.self.close();
		
	}
	
else if (document.getElementById('swLink')){
		
		
		setTimeout('self.close()',1000);
		
	}
	
	return false;


    
}

function tow(url) {

	opener.location.href = url;
	
}
