function openwin(url,mwidth,mheight){
	var opts='status=0,resizable=1';
	if(mwidth && mheight)opts+=',width='+mwidth+',height='+mheight;

        if (document.all&&window.print) //if ie5
		eval('window.open(url,"",opts)');
        else
		eval('window.open(url,"",opts)');
}//eval('window.showModelessDialog(url,"","help:0;resizable:0;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")');

function openWin(file,name,h,w){
	window.open(file,name,"height="+h+",width="+w+",resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no");
}

function getAgreement(file){
	h='600';
	w='800';
	window.open(file,'agreement',"height="+h+",width="+w+",resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
	//window.showModelessDialog('ims_agreement.php',"","help:0;resizable:0;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px");
}

function openWindow( popupURL){
	return window.open( popupURL, 'openWindow', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0' );
}

function openWindow( popupURL, winName){
	return window.open( popupURL, winName, 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1' );
}

function openWindow(popupURL, w, h ){
	return window.open( popupURL,'_blank','width='+w+',height='+h+',resizable=1,scrollbars=0');
}

function printWindow( popupURL){
	return window.open( popupURL, 'printWindow', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1' );
}


function printImage( popupURL){
	return window.open( popupURL, 'printImage', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0' );
}