
function opennewsletter(txt){
	
	
	
		var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth - 200;
    myHeight = window.innerHeight - 150;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth - 200;
    myHeight = document.documentElement.clientHeight - 150;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth - 200;
    myHeight = document.body.clientHeight - 150;
  }
	
	
	emailwindow=dhtmlmodal.open('EmailBox', 'iframe', txt, 'Gallery .V1', 'width=' + myWidth + ',height=' + myHeight + ',center=1,resize=0,scrolling=1')
	

	
}
function openattachgallery(txt){
	
	
	
		var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth - 400;
    myHeight = window.innerHeight - 300;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth - 400;
    myHeight = document.documentElement.clientHeight - 300;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth - 400;
    myHeight = document.body.clientHeight - 300;
  }
	
	
	emailwindow=dhtmlmodal.open('EmailBox', 'iframe', txt, 'Attach Gallery', 'width=' + myWidth + ',height=' + myHeight + ',center=1,resize=0,scrolling=1')
	


}

function openaddentrant(txt){
	
	
	
		var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = 600;
    myHeight = 200;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = 600;
    myHeight = 200;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = 600;
    myHeight = 200;
  }
	
	
	emailwindow=dhtmlmodal.open('EmailBox', 'iframe', txt, 'Add a contendant', 'width=' + myWidth + ',height=' + myHeight + ',center=1,resize=0,scrolling=1')
	


}
function openaddfiles(txt){
	
	
	
		var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth - 400;
    myHeight = window.innerHeight - 300;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth - 400;
    myHeight = document.documentElement.clientHeight - 300;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth - 400;
    myHeight = document.body.clientHeight - 300;
  }
	
	
	emailwindow=dhtmlmodal.open('EmailBox', 'iframe', txt, 'Add a file', 'width=' + myWidth + ',height=' + myHeight + ',center=1,resize=0,scrolling=1')
	


}
