function support(YM){
	location.href="ymsgr:sendIM?" + escape(YM);
}

function openModal(Url,Winname,wWidth,wHeight,wLeft,wTop,wScrollbar,strOthers,Modal){
	if (Modal==1){
		// read name browser
		if (navigator.appName.toLowerCase().indexOf('microsoft internet explorer')>=0 || navigator.appName.toLowerCase().indexOf('internet explorer')>=0){ 
			// IE Browser
			if (strOthers.length>0)	
					strOthers=';' + strOthers;	
			if (wScrollbar.toLowerCase()=='no')
					strOthers=strOthers + ';scroll=no'; 
			if (Url.indexOf("?") >= 0) 
					Url = Url + "&modal=1"; 
			else 
					Url = Url + "?modal=1"	;
			dialogWindow = window.showModalDialog(Url,top,'dialogWidth=' + wWidth + 'px;dialogHeight=' + wHeight + 'px' + ';dialogLeft=' + wLeft + ';dialogTop=' + wTop + strOthers); 
		}else{ 
			// Any other browsers 
			if (Url.indexOf("?") >= 0) 
				Url = Url + "&modal=0";
			else 
				Url = Url + "?modal=0";
			if (strOthers.length>0){
				strOthers.replace(';',',');
				strOthers=',' + strOthers;
			}
			if (wScrollbar.toLowerCase()=='no')
				strOthers=strOthers + ',scrollbars=no';
			else
				strOthers=strOthers + ',scrollbars=yes';
			dialogWindow=window.open(Url,Winname,'height=' + wHeight +',width=' + wWidth + ',screenX=' + wLeft + ',screenY=' + wTop + strOthers);
		}
	}else{
			if (Url.indexOf("?") >= 0) 
				Url = Url + "&modal=0";
			else 
				Url = Url + "?modal=0";
		if (strOthers.length>0){
			strOthers =strOthers.replace(';',',');
			strOthers=',' + strOthers;
		}		
		if (wScrollbar.toLowerCase()=='no')
			strOthers=strOthers + ',scrollbars=no';
		else
			strOthers=strOthers + ',scrollbars=yes';
		dialogWindow=window.open(Url,Winname,'height=' + wHeight + ',width=' + wWidth + ',top=' + wTop + ',left=' + wLeft + ',screenX=' + wLeft + ',screenY=' + wTop + strOthers);
	}
}