function wstchatlogin(uname,pwd,utype)
	{
	if (uname!="")
		{
		if (utype=='PROVIDER' || utype=='SALESPERSON')
			{
			//window.open('chatinit.asp?UType=' + utype,'uname','toolbar=no,width=590px,height=440px,top=0,left=0,dependent');
			//window.open('chatinit.asp?UType=' + utype,'uname','toolbar=no,width=590px,height=440px,top=0,left=0,dependent');
			window.open ('chatinit.asp?UType=' + utype,'uname','left=0,top=0,width='+(screen.availwidth-6)+',height='+(screen.availheight-70)+',screenX=0,screenY=0,toolbar=1,titlebar=0,menubar=0,scrollbars=1,locationbar=0,modal=1,statusbar=1');
			}
		else
			{
			window.open('http://www.whitesandstours.ae/chat/default.aspx?UName=' + uname + '&UPassword=' + pwd + '&UType=' + utype,"uname",'toolbar=no,width=590px,height=440px,top=0,left=0,dependent');
			}
		}
	else
		{
		window.open('http://www.whitesandstours.ae/chat/GuestLogin.aspx?guestarea=' + pwd,"uname",'toolbar=no,width=590px,height=430px,top=0,left=0,dependent');
		}
	}
