function getContentMovie(url, type, curPage, element ) {
        var url=url;
        url = url.concat("?_debug=off");

	if ( type == "trailer" ) {
		url = url.concat("&ajaxTrailer=1");
        	url = url.concat("&tpage="+curPage);
	} else {
                url = url.concat("&ajaxMovie=1");
                url = url.concat("&mpage="+curPage);
	}

        url = url.concat("&type="+type);

        var ra0 = new Date().getTime();
        url = url.concat("&r="+ra0);

        var updaterAjax = new Ajax.Updater(
                {success: element},
                url,
                {
                        method: 'get'
                }
        );

        function reportError(request) {
                alert("error");
        }
        return;
}




function openWin(url, width, height) {
	var popUp = window.open(url,'popUp','width='+width+', height='+height+', menubar=no, toolbar=no, location=no, status=no, dependent=yes, resizable=yes');
	popUp.focus();
}





function pOpen(URL) {
        var width = Math.min(900, screen.availWidth);
        var height = Math.min(800, screen.availHeight);
        var popUp = window.open(URL,'popUp','width='+width+', height='+height+', menubar=no, locationbar=yes, location=yes, toolbar=yes, status=no, dependent=yes, scrollbars=yes, resizable=yes');
        popUp.focus();
}
