function openchromeless(playerstyle,id,type,wname, W, H, windowREALtit) 
{
	var WArr=W.split(",");
	var HArr=H.split(",");
	var windowW = parseInt(WArr[0])+parseInt(WArr[1])+parseInt(WArr[2]);
	var windowH = parseInt(HArr[0])+parseInt(HArr[1])+parseInt(HArr[2]);
	var windowX = Math.ceil( (window.screen.width  - windowW) / 2 );
	var windowY = Math.ceil( (window.screen.height - windowH) / 2 );

	s = ",width="+Math.ceil( windowW ) +",height="+Math.ceil( windowH ) + ",left=" + Math.ceil( windowX ) + ",top=" + Math.ceil( windowY );
	if (type!=0) type=1;
	var chromeFRMhtml = '' +
	'<HTML>'+ '\n'+
	'<HEAD>'+ '\n'+
	'<TITLE>'+ windowREALtit +'</TITLE>'+ '\n'+
	'<HTA:APPLICATION ID="idApp"' + '\n'+
	'BORDER="none"' + '\n'+
	'CAPTION="no"' + '\n'+
	'SYSMENU="no"' + '\n'+
	'/>'+ '\n'+
	'</HEAD>'+ '\n'+
	'<frameset framespacing="0" border="0" rows="'+H+'" frameborder="0">'+ '\n'+
	'  <frame name=chromewint scrolling="no" noresize src="'+playerstyle+'VodPlay_Win_Top.htm" marginwidth="0" marginheight="0">'+ '\n'+
	'  <frameset cols="'+W+'">'+ '\n'+
	'    <frame name=chromewinl  scrolling="no" src="'+playerstyle+'VodPlay_Win_Left.htm" marginwidth="0" marginheight="0" noresize>'+ '\n'+
	'    <frame name=main scrolling="no" marginwidth="0" marginheight="0" noresize src="'+playerstyle+'VodPlay_Player.asp?VodId=' +id+ '&type='+type+'">'+ '\n'+
	'    <frame name=chromewinr scrolling="no" src="'+playerstyle+'VodPlay_Win_Right.htm" marginwidth="0" marginheight="0" noresize>'+ '\n'+
	'  </frameset>'+ '\n'+
	'  <frameset cols="*,0">'+ '\n'+
	'     <frame name=chromewinb scrolling="no" src="'+playerstyle+'VodPlay_Win_Bottom.htm" noresize>'+ '\n'+
	'     <frame name=handle scrolling="no" src="Play_Handle.htm" noresize>'+ '\n'+
	'  </frameset>'+ '\n'+
	'</frameset>'+ '\n'+	
	'</HTML>'

	if(navigator.appName=="Microsoft Internet Explorer"){
	if(parseInt((navigator.appVersion.split(";")[1]).split(" ")[2])>=6){
		splashWin = window.open( "" , wname, "fullscreen=0"+s);
		
	}else{
		splashWin = window.open( "" , wname, "fullscreen=1"+s);
	}
	}
	splashWin.resizeTo( Math.ceil( windowW ) , Math.ceil( windowH ) );
	splashWin.moveTo  ( Math.ceil( windowX ) , Math.ceil( windowY ) );
	//alert(chromeFRMhtml)
	splashWin.document.open();
	splashWin.document.write(chromeFRMhtml);
	splashWin.document.close();
	splashWin.focus();
	//return chromeFRMhtml;
}                                                                               
                                                                                
function quitasaltolinea(txt) 
{
  var salida = txt.toString()
  var re     = /\\/g; var salida = salida.replace(re, "\\\\");
  var re     = /\//g; var salida = salida.replace(re, "\\\/");
  var re     = /\"/g; var salida = salida.replace(re, "\\\"");
  var re     = /\'/g; var salida = salida.replace(re, "\\\'");
  var re     = /\n/g; var salida = salida.replace(re, "\\n");
  var re     = /  /g; var salida = salida.replace(re, "");
  var re     = /\t/g; var salida = salida.replace(re, "");
  var re     = /\r/g; var salida = salida.replace(re, "");

  return salida
}
