              


		      function drawContact()
		      { str = '<form name="contactForm">'
		      	str +='<table cellspacing="0" cellpadding="0" width="470">'
		      	str +='<tr><td height="20"></td></tr>'
		      	str +='<tr><td align="right"><font color="red">*</font> Your name:&nbsp;</td>'
		  	    str +='    <td><input type="text" class="st1" style="width:200px" maxlength="25"'
		  	    str +='         onFocus="tabPower =true" name="name"></td></tr>'
		  	    str +='<tr><td height="3"></td></tr>'
		  	    str +='<tr><td align="right"><font color="red">*</font> Your&nbsp;e-mail&nbsp;address:&nbsp;</td>'
		  	    str +='    <td><input type="text" class="st1" style="width:200px" maxlength="25"'
		  	    str +='         onFocus="tabPower =true" name="email"></td></tr>'
		  	    str +='<tr><td></td>'
		  	    str +='    <td style="padding-bottom:5px; color:#878787">'
		  	    str +='     Please provide your valid email address!</td></tr>'
		  	    str +='<tr><td align="right" valign="top" style="padding-top:3px"><font color="red">*</font> Letter:&nbsp;</td>'
		  	    str +='    <td style="padding-top:1px"><textarea class="st1" onFocus="tabPower =true"'
		  	    str +='     name="letter" style="width:300px; height:100px"></textarea></td></tr>'
		  	    str +='<tr><td></td>'
		  	    str +='    <td style="padding-top:7px"><b> Address:</b><br>'
		  	    str +='	    Khan-Uul district-3, Ulaanbaatar city-13, Mongolia<br>'
				str +='	    Phone: (976) 7733-3333, 7733-3334, 7733-3335, 7733-3336<br>'
				str +='	    Fax: 976-11-343477<br>'
				str +='	    Post box: 210136</td></tr>'
		  	    str +='<tr><td height="10"></td></tr>'
		      	str +='</table></form>'
		  	    
		  	    preLoaderControl(false)
		  	    getObj('proBody').innerHTML =str
		  	    str = '<table align="center">'
		  	    str +='<tr><td height="3"></td></tr>'
		  	    str +='<tr><td><input type="button" class="st1" value="Send" onFocus="tabPower=true" style="color:black;'
			    str +='         cursor:pointer; padding-bottom:2px" onClick="checkContactError()"></td>'
			    str +='    <td><input type="button" class="st1" value="Cancel" onFocus="tabPower=false" style="color:black;'
			    str +='         cursor:pointer; padding-bottom:2px" onClick="closeProgram()"></td></tr>'
		  	    str +='<tr><td height="3"></td></tr>'
		  	    str +='</table>'
		  	    getObj('proExplain').innerHTML =str
		        getObj('proName').innerHTML ='CONTACT PAGE' }
		      
		      
		      
		      function checkContactError()
		  	  { var msg ='Error!\n'
			    if(document.contactForm.name.value =='')   msg +='Please enter your name!\n';
			    if(document.contactForm.email.value =='')  msg +='Your E-mail address is empty!\n';
			    if(document.contactForm.letter.value =='') msg +='Your letter is empty!\n';
			    if(document.contactForm.email.value !='')
                { str =document.contactForm.email.value
	              var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	              if(!filter.test(str))  msg +='Your E-mail is incorrect!\n'; }
		  	      
			    if(msg =='Error!\n')
			    { preLoaderControl(true)
			      javascript:sendGuestMail(this.parentNode)
			    }
			    else alert(msg) }
		  	  
		  	  
		  	  
		  	  
		  	  var xmlRequestContact =false;
			  function postAjaxSendMail(url, parameters)
			  { xmlRequestContact =getXMLHttpObject()
			    if(xmlRequestContact ==null)
			    { alert('Cannot create XMLHTTP instance'); return false; }
			    xmlRequestContact.onreadystatechange =alertContentsContact;
			    xmlRequestContact.open('POST', url, true);
			    xmlRequestContact.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
			    xmlRequestContact.setRequestHeader("Content-length", parameters.length);
			    xmlRequestContact.setRequestHeader("Connection", "close");
			    xmlRequestContact.send(parameters); }
			   
			  function alertContentsContact()
			  { if(xmlRequestContact.readyState ==4)
			    { if(xmlRequestContact.status ==200)
			      { preLoaderControl(false)
			      	str = '<table>'
			      	str +='<tr><td style="padding:5px; padding-top:7px">'
			      	str +='    <input type="button" class="st1" value="Close window" style="color:black;'
			        str +='         cursor:pointer; padding-bottom:2px" onClick="closeProgram()"></td>'
			        str +='</tr></table>'
		  	        document.getElementById('proExplain').innerHTML =str
		            document.getElementById('proName').innerHTML ='MESSAGE WINDOW'
			        document.getElementById('proBody').innerHTML =xmlRequestContact.responseText; }
			      else alert('There was a problem with the request.')
			  } }
			   
			  function sendGuestMail(obj)
			  { str  ='name='+ encodeURI(document.contactForm.name.value) +'&'
			    str +='em='+ encodeURI(document.contactForm.email.value) +'&'
			    str +='letter='+ encodeURI(document.contactForm.letter.value)
			    postAjaxSendMail('modulee/ajax/contact.php', str) }