function completeRegistrationAlert(user) {
		showMask2();
		var d1=getScreenSize();
		var offsetX=parseInt(d1.w)/2-200;
		var offsetY=parseInt(d1.h)/2-200;
		document.getElementById("instructionsHeader").innerHTML="Your Shift Pattern";
		var div=document.createElement("div");
		div.className="instructionsHeader";
		div.innerHTML="Complete Subscription";
		document.getElementById("formPanel").appendChild(div);

		var warning=document.createElement("div");
		warning.style.width="400px";
		warning.id="warningContainer";
		warning.style.left=offsetX+"px";
		warning.style.top=(parseInt(document.body.scrollTop)+200)+"px";
		var head=document.createElement("div");
			head.id="instructionsHeader";
			head.style.textAlign="left";
			head.className="instructionsHeader";
			head.innerHTML="Complete Subscription";
			warning.appendChild(head);
		var bodyObj=document.createElement("div");
		bodyObj.style.textAlign="left";
		bodyObj.style.padding="10px";
		bodyObj.innerHTML='<h3>You have not finished registering to MobileRota</h3><p>Please Click Continue to complete your registration to MobileRota</p>';
		warning.appendChild(bodyObj);
		var buttons=document.createElement("div");
		buttons.style.padding="10px";
		var cancel=document.createElement("div");
		var form=document.createElement("form");
			form.action="register.php";
			form.method="POST";

			var input=document.createElement("input");
			input.type="hidden";
			input.name="userId";
			input.id="userId";
			input.value=user.getAttribute("userId");
			form.appendChild(input);

			var input2=document.createElement("input");
			input2.type="hidden";
			input2.name="termsAccepted";
			input2.id="termsAccepted";
			input2.value=user.getAttribute("termsAccepted");
			form.appendChild(input2);

			var input3=document.createElement("input");
			input3.type="hidden";
			input3.name="patternId";
			input3.id="patternId";
			input3.value=user.getAttribute("patternId");
			form.appendChild(input3);

			var input4=document.createElement("input");
			input4.type="hidden";
			input4.name="action";
			input4.id="action";
			input4.value="complete";
			form.appendChild(input4);

			var button=document.createElement("input");
			button.type="button";
			button.value="Cancel";
			button.className="nextButton2";
			button.style.margin="0px";
			button.style.color="#FFFFFF";
			button.style.backgroundColor="#FF0000";
			button.style.paddingBottom="5px";
			button.style.border="outset 1px #FF0000";
			button.style.cssFloat="left";
			button.onclick=delegate(this,this.noComplete);
			cancel.appendChild(button);

			var button2=document.createElement("input");
			button2.type="submit";
			button2.value="Continue";
			button2.className="nextButton2";
			button2.style.margin="0px";
			button2.style.color="#FFFFFF";
			button2.style.backgroundColor="#2B6371";
			button2.style.paddingBottom="5px";
			button2.style.border="outset 1px #2B6371";
			button2.style.cssFloat="right";
			form.appendChild(button2);

			cancel.appendChild(form);
			buttons.appendChild(cancel);
			warning.appendChild(buttons);

			var div=document.createElement("div");
			div.innerHTML="&nbsp;";
			warning.appendChild(div);

			document.body.appendChild(warning);
}


function launchWapWarning(noWap,wapEnabled,descrip)
	{
		if(xIE6) {
			if(document.getElementById("country") !=null) {
				document.getElementById("country").style.visibility="hidden";
			}
		}
		//showMask2();
		var d1=getScreenSize();
		var offsetX=parseInt(d1.w)/2-200;
		var offsetY=parseInt(d1.h)/2-200;

		var warning=document.createElement("div");
		warning.style.width="250px";
		warning.id="warningContainer";
		warning.style.left=offsetX+"px";
		warning.style.top=(parseInt(document.body.scrollTop)+200)+"px";
		var head=document.createElement("div");
			head.id="instructionsHeader";
			head.style.textAlign="left";
			head.className="instructionsHeader";
			head.innerHTML="Important Information";
			warning.appendChild(head);
		var bodyObj=document.createElement("div");
		bodyObj.style.textAlign="left";
		bodyObj.style.padding="10px";
		bodyObj.innerHTML='<h3>Please Check that your Mobile Phone is WAP (Wireless Application Protocol) enabled</h3><p><strong>If you are unsure please contact your Mobile Phone Network or use these links to help you set up WAP on your phone.</strong></p><p>Although most phones now come with WAP enabled, it is possible that you do not have WAP enabled on your handset. MobileRota will only work on WAP enabled phones. If you are unsure please use these links to help you set up WAP on your phone.</p><h3>Phone Manufacturers</h3><a href="https://nokiags.wdsglobal.com/globalJumpPage.html" target="_blank">Nokia</a><br /><a href="http://www.sonyericsson.com/cws/support/phones/detailed/phonesetupwap?cc=ph&amp;lc=en" target="_blank">Sony Ericsson</a><br /><a href="http://uk.samsungmobile.com/supports/configurephone/wapSetting.do" target="_blank">Samsung</a><br /><a href="https://motorolasetup.tarsin.com/home.htm?manufacturer=1&deviceKey2" target="_blank">Motorola</a><br /><h3>Service Providers</h3><a href="http://www.virginmobile.com/vm/vm/setup3gAndGprs.do?contentId=setting.up.3g.gprs.howdoi.sm101" target="_blank">Virgin</a><br /><a href="http://support.t-mobile.co.uk/help-and-support/index?page=home&cat=SOFTWAREDOWNLOADS" target="_blank">T-Mobile</a><br /><a href="http://getsettings.o2.co.uk/ServeSettingsWebApp/" target="_blank">02</a><br /><a href="http://setuporange.wdsglobal.com/wap" target="_blank">Orange</a><br /><a href="http://devicehelp.vodafone.co.uk/DeviceHelp.php?e=0" target="_blank">Vodaphone </a><br /><a href="http://www.three.co.uk/Help_Support/About_my_mobile/Troubleshooter?content_mode=Troubleshooter_list&content_aid" target="_blank">3 Mobile</a><br />';
		warning.appendChild(bodyObj);

		var buttons=document.createElement("div");
		buttons.style.padding="10px";

		var cancel=document.createElement("div");


			var button=document.createElement("input");
			button.type="button";
			button.value=descrip+" phone is not Wap Enabled";
			button.className="nextButton2";
			button.style.margin="0px";
			button.style.color="#FFFFFF";
			button.style.backgroundColor="#FF0000";
			button.style.paddingBottom="5px";
			button.style.border="outset 1px #FF0000";
			button.style.cssFloat="left";
			button.onclick=delegate(this,noWap);
			cancel.appendChild(button);


			var button2=document.createElement("input");
			button2.type="button";
			//button2.value=descrip+" phone is Wap Enabled";
			button2.value="Continue";
			button2.className="nextButton2";
			button2.style.margin="0px";
			button2.style.color="#FFFFFF";
			button2.style.backgroundColor="#009900";
			button2.style.paddingBottom="5px";
			button2.style.border="outset 1px #00FF00";
			button2.style.cssFloat="right";
			button2.onclick=delegate(this,wapEnabled);
			cancel.appendChild(button2);

			buttons.appendChild(cancel);
			warning.appendChild(buttons);

				var div=document.createElement("div");
			div.innerHTML="&nbsp;";
			warning.appendChild(div);

			document.body.appendChild(warning);

	}
	function launchThankyouAdditionalWarning(email,password)
	{
		showMask2();
		var d1=getScreenSize();
		var offsetX=parseInt(d1.w)/2-200;
		var offsetY=parseInt(d1.h)/2-200;

		var warning=document.createElement("div");
		warning.style.width="400px";
		warning.id="warningContainer";
		warning.style.left=offsetX+"px";
		warning.style.top=(parseInt(document.body.scrollTop)+200)+"px";
		var head=document.createElement("div");
			head.id="instructionsHeader";
			head.style.textAlign="left";
			head.className="instructionsHeader";
			head.innerHTML="Thank You For Choosing MobileRota";
			warning.appendChild(head);
			var bodyObj=document.createElement("div");
			bodyObj.style.textAlign="left";
			bodyObj.style.padding="10px";
			bodyObj.innerHTML='<h3 style="color:#FF0000;">Thank You For Choosing MobileRota</h3><p>The MobileRota application has now been sent to your telephone</p>'
			bodyObj.innerHTML+='<p>MobileRota downloads are sent as Service Messages. These will be delivered to your phone\'s Service Inbox. This may be called "<strong>Service Messages</strong>", "<strong>Browser Messages</strong>" or "<strong>Web Messages</strong>".</p>';
			bodyObj.innerHTML+='<p style="color:#FF0000;">On some phones they will also arrive as a text message.</p>';
			bodyObj.innerHTML+='<p style="color:#FF0000;">Please open this message and follow the instructions on your phone to continue with the download <strong>before you  subscribe</strong>.</p>';
			warning.appendChild(bodyObj);



			var div=document.createElement("div");
			div.innerHTML="&nbsp;";
			warning.appendChild(div);
			var cancel=document.createElement("div");
			var button2=document.createElement("input");
			button2.type="submit";
			button2.value="Continue";
			button2.className="nextButton2";
			button2.style.margin="0px";
			button2.style.color="#FFFFFF";
			button2.style.backgroundColor="#2B6371";
			button2.style.paddingBottom="5px";
			button2.style.border="outset 1px #2B6371";
			button2.style.width="400px";
			button2.onclick=delegate(this,this.closeAdditional);
			cancel.appendChild(button2);
			warning.appendChild(cancel);
			document.body.appendChild(warning);
	}

	function launchThankyouWarning(email,password)
	{
		showMask2();
		var d1=getScreenSize();
		var offsetX=parseInt(d1.w)/2-200;
		var offsetY=parseInt(d1.h)/2-200;

		var warning=document.createElement("div");
		warning.style.width="400px";
		warning.id="warningContainer";
		warning.style.left=offsetX+"px";
		warning.style.top=(parseInt(document.body.scrollTop)+200)+"px";
		var head=document.createElement("div");
			head.id="instructionsHeader";
			head.style.textAlign="left";
			head.className="instructionsHeader";
			head.innerHTML="Thank You For Choosing MobileRota";
			warning.appendChild(head);
			var bodyObj=document.createElement("div");
			bodyObj.style.textAlign="left";
			bodyObj.style.padding="10px";
			bodyObj.innerHTML='<h3 style="color:#FF0000;">Thank You For Choosing MobileRota</h3><p>The MobileRota application has now been sent to your telephone</p>'
			bodyObj.innerHTML+='<p>MobileRota downloads are sent as Service Messages. These will be delivered to your phone\'s Service Inbox. This may be called "<strong>Service Messages</strong>", "<strong>Browser Messages</strong>" or "<strong>Web Messages</strong>".</p>';
			bodyObj.innerHTML+='<p style="color:#FF0000;">On some phones they will also arrive as a text message.</p>';
			bodyObj.innerHTML+='<p style="color:#FF0000;">Please open this message and follow the instructions on your phone to continue with the download.</p>';
			warning.appendChild(bodyObj);

		var buttons=document.createElement("div");
		buttons.style.padding="10px";

		var cancel=document.createElement("div");

			var form=document.createElement("form");
			form.action="logout.php";
			form.method="POST";

			var input=document.createElement("input");
			input.type="hidden";
			input.name="email";
			input.id="email";
			input.value=email;
			form.appendChild(input);

			var input2=document.createElement("input");
			input2.id="password";
			input2.name="password";
			input2.type="hidden";
			input2.value=password;
			form.appendChild(input2);

			var input3=document.createElement("input");
			input3.id="loc";
			input3.name="loc";
			input3.type="hidden";
			input3.value="phones";
			form.appendChild(input3);

			var button2=document.createElement("input");
			button2.type="submit";
			button2.value="Continue";
			button2.className="nextButton2";
			button2.style.margin="0px";
			button2.style.color="#FFFFFF";
			button2.style.backgroundColor="#2B6371";
			button2.style.paddingBottom="5px";
			button2.style.border="outset 1px #2B6371";
			button2.style.cssFloat="right";
			form.appendChild(button2);

			cancel.appendChild(form);
			buttons.appendChild(cancel);
			warning.appendChild(buttons);

			var div=document.createElement("div");
			div.innerHTML="&nbsp;";
			warning.appendChild(div);

			document.body.appendChild(warning);

	}

	function launchSynchroniseHolidaysHelp(description) {
		showMask2();
		var d1=getScreenSize();
		var offsetX=parseInt(d1.w)/2-200;
		var offsetY=parseInt(d1.h)/2-200;

		var warning=document.createElement("div");
		warning.style.width="400px";
		warning.id="warningContainer";
		warning.style.left=offsetX+"px";
		warning.style.top=(parseInt(document.body.scrollTop)+200)+"px";
		var head=document.createElement("div");
		head.id="instructionsHeader";
		head.style.textAlign="left";
		head.className="instructionsHeader";
		head.innerHTML="<table width='100%' cellpadding='0'><tr><td width='100%'>Important Information</td><td style='padding-right:5px;'><a href='javascript:hideWarning();'><img src='images/design/close.gif' width='15' height='15'/></a></td></tr></table>";
		warning.appendChild(head);
		var bodyObj=document.createElement("div");
		bodyObj.style.textAlign="left";
		bodyObj.style.padding="10px";
		bodyObj.innerHTML="<p>Your holiday has been "+description+" successfully</p>" +
				"<p>You can now use the MobileRota synchronise feature to transfer it to you mobile phone.<br /><span style='color:#FF0000;'>(Some phones require the MobileRota Application to close and re-open before the changes are read in).</span></p>";
		warning.appendChild(bodyObj);

		var buttons=document.createElement("div");
		buttons.style.padding="10px";

		var cancel=document.createElement("div");

		var keptNumbera=document.createElement("input");
		keptNumbera.type="button";
		keptNumbera.value="Close";
		keptNumbera.className="nextButton2";
		keptNumbera.style.margin="0px";
		keptNumbera.style.color="#FFFFFF";
		keptNumbera.style.backgroundColor="#2B6371";
		keptNumbera.style.paddingBottom="5px";
		keptNumbera.style.border="outset 1px #2B6371";
		keptNumbera.style.cssFloat="left";
		keptNumbera.onclick=delegate(this,hideWarning);
		cancel.appendChild(keptNumbera);
		buttons.appendChild(cancel);
		warning.appendChild(buttons);

			var div=document.createElement("div");
		div.innerHTML="&nbsp;";
		warning.appendChild(div);

		document.body.appendChild(warning);

	}

	function launchSynchroniseShiftHelp(description) {
		scroll(0,0);
		showMask2();
		var d1=getScreenSize();
		var offsetX=parseInt(d1.w)/2-200;
		var offsetY=parseInt(d1.h)/2-200;

		var warning=document.createElement("div");
		warning.style.width="400px";
		warning.id="warningContainer";
		warning.style.left=offsetX+"px";
		warning.style.top=(parseInt(document.body.scrollTop)+200)+"px";
		var head=document.createElement("div");
		head.id="instructionsHeader";
		head.style.textAlign="left";
		head.className="instructionsHeader";
		head.innerHTML="<table width='100%' cellpadding='0'><tr><td width='100%'>Important Information</td><td style='padding-right:5px;'><a href='javascript:hideWarning();'><img src='images/design/close.gif' width='15' height='15'/></a></td></tr></table>";
		warning.appendChild(head);
		var bodyObj=document.createElement("div");
		bodyObj.style.textAlign="left";
		bodyObj.style.padding="10px";
		bodyObj.innerHTML="<p>Your shift pattern has been "+description+" successfully</p>" +
				"<p>You can now use the MobileRota synchronise feature to transfer it to you mobile phone.<br /><span style='color:#FF0000;'>(Some phones require the MobileRota Application to close and re-open before the changes are read in).</span></p>";
		warning.appendChild(bodyObj);

		var buttons=document.createElement("div");
		buttons.style.padding="10px";

		var cancel=document.createElement("div");

		var keptNumbera=document.createElement("input");
		keptNumbera.type="button";
		keptNumbera.value="Close";
		keptNumbera.className="nextButton2";
		keptNumbera.style.margin="0px";
		keptNumbera.style.color="#FFFFFF";
		keptNumbera.style.backgroundColor="#2B6371";
		keptNumbera.style.paddingBottom="5px";
		keptNumbera.style.border="outset 1px #2B6371";
		keptNumbera.style.cssFloat="left";
		keptNumbera.onclick=delegate(this,hideWarning);
		cancel.appendChild(keptNumbera);
		buttons.appendChild(cancel);
		warning.appendChild(buttons);

			var div=document.createElement("div");
		div.innerHTML="&nbsp;";
		warning.appendChild(div);

		document.body.appendChild(warning);

	}
	function launchShiftHelp() {

		var d1=getScreenSize();
		var offsetX=parseInt(d1.w)/2-350;
		var offsetY=parseInt(d1.h)/2-200;

		var warning=document.createElement("div");
		warning.style.width="700px";
		warning.id="warningContainer";
		warning.style.left=offsetX+"px";
		warning.style.top=(parseInt(document.body.scrollTop)+50)+"px";
		var head=document.createElement("div");
		head.id="instructionsHeader";
		head.style.textAlign="left";
		head.className="instructionsHeader";
		head.innerHTML="<table width='100%' cellpadding='0'><tr><td width='100%'>Important Information</td><td style='padding-right:5px;'><a href='javascript:hideWarning();'><img src='images/design/close.gif' width='15' height='15'/></a></td></tr></table>";
		warning.appendChild(head);
		var bodyObj=document.createElement("div");
		bodyObj.style.textAlign="left";
		bodyObj.style.padding="10px";
		bodyObj.innerHTML="<p>Here is some extra help if you are having problems setting up your shift pattern.</p>"+
"<p>If you are the <strong>first person</strong> from your company to try MobileRota then you will have to <strong>generate</strong> your shift pattern following the steps below.</p>"+
"<p>Colleagues on the same pattern can then save time by using this template themselves. If they are on a different leg of the same pattern all they will have to do is change the start date to re-align the pattern to their own schedule they will not have to re-enter the whole pattern.</p>"+
"<p>(The start date is used purely for the Generation of your shift pattern and does not affect the life of the application on your phone).</p>"+
"<p><strong>Shift Pattern Wizard Step 1</strong></p>"+
"<ol>"+
	"<li>In the box next to the words <strong>Existing Shifts</strong> click on the drop down menu and choose '<strong>Generate New Shift Pattern</strong>'<br /><br /></li>"+
	"<li><strong>Give Your Shift Pattern a description</strong> that colleagues will recognise - for example <strong>56 day rotation</strong> or <strong>2 days, 2 nights 4 off</strong> etc.<br /><br /></li>"+
	"<li><strong>Shift Pattern Start Date</strong> - if you choose the present date then you can fill in the boxes below starting with the shift or rest day that you are on today. <br /><br /></li>"+
	"<li><strong>Length of Pattern</strong> - this figure represents the total number of days in your shift pattern cycle, e.g. if you work 2 days, 2 evenings, 2 nights and 4 rest days before returning on days then the length of your pattern is 10, so you would enter 10 in this box. So work this out and enter the appropriate number. In this case it will allocate 10 boxes, each with a drop down menu, for you to choose a description that best fits your situation.<br /><br /></li>"+
	"<li><strong>Week Start</strong> - this chooses which day of the week MobileRota will show as the first day on your rota, either Sunday or Monday.<br /><br /></li>"+
"</ol>"+
"<p><strong>Shift Pattern Wizard Step 2</strong></p>"+
"<ol>"+
	"<li>Use the drop down arrow to open the menu for 'Day 1' and choose the shift that best describes the shift you are on that day, e.g. days, evenings or nights, and then repeat this for each day of your cycle.<br /><br /></li>"+
	"<li>As you make your choices you will see the pattern on our web phone update to form your shift pattern.<br /><br /></li>"+
	"<li>When you have finished, check the pattern for accuracy and only when you are satisfied click on the '<strong>Approve Pattern</strong>' button. This pattern will then be sent to your mobile phone.<br /><br /></li>"+
	"<li>4.	If you already have the app and are just adding a new pattern then when you click '<strong>Approve Pattern</strong>' all you need to do is to open the app on your phone go to menu and choose synchronise - this will then read in the revised details.<br /><br /></li>"+
"</ol>"+
"<p><strong>If your company shift pattern already exists then follow the steps below.</strong></p>"+
"<ol>"+
	"<li>Click on <strong>Existing Shifts</strong> and choose the shift pattern that relates to you. Don't worry if it seems out of synch with your schedule as this can be adjusted.<br /><br /></li>"+
	"<li>Use the <strong>Shift Pattern Start Date</strong> to <strong>align</strong> the <strong>rota</strong> with your leg of the pattern and check this on our web phone, if you make a mistake just try again.<br /><br /></li>"+
	"<li>When you have finished, check the pattern for accuracy and only when you are satisfied click on the '<strong>Approve Pattern</strong>' button. This pattern will then be sent to your mobile phone.<br /><br /></li>"+
"</ol>"+
"<p>If your pattern is not already there then click on 'Generate New Pattern' and follow the steps above.</p>";

		warning.appendChild(bodyObj);

		var buttons=document.createElement("div");
		buttons.style.padding="10px";

		var cancel=document.createElement("div");

		var keptNumbera=document.createElement("input");
		keptNumbera.type="button";
		keptNumbera.value="Continue";
		keptNumbera.className="nextButton2";
		keptNumbera.style.margin="0px";
		keptNumbera.style.color="#FFFFFF";
		keptNumbera.style.backgroundColor="#009900";
		keptNumbera.style.paddingBottom="5px";
		keptNumbera.style.border="outset 1px #00FF00";
		keptNumbera.onclick=delegate(this,hideWarning);
		cancel.appendChild(keptNumbera);
		buttons.appendChild(cancel);
		warning.appendChild(buttons);

			var div=document.createElement("div");
		div.innerHTML="&nbsp;";
		//warning.appendChild(div);

		document.body.appendChild(warning);
			showMask2();
	}
	function launchChangePhoneWarning(parentClass,keptNumber,mobileNumber,intMobileNumber,code,method,mainPhone,phoneType) {

		showMask2();
		var d1=getScreenSize();
		var offsetX=parseInt(d1.w)/2-200;
		var offsetY=parseInt(d1.h)/2-200;

		var warning=document.createElement("div");
		warning.style.width="400px";
		warning.id="warningContainer";
		warning.style.left=offsetX+"px";
		warning.style.top=(parseInt(document.body.scrollTop)+200)+"px";
		var head=document.createElement("div");
		head.id="instructionsHeader";
		head.style.textAlign="left";
		head.className="instructionsHeader";
		head.innerHTML="<table width='100%' cellpadding='0'><tr><td width='100%'>Important Information</td><td style='padding-right:5px;'><a href='javascript:closeForms();'><img src='images/design/close.gif' width='15' height='15'/></a></td></tr></table>";
		warning.appendChild(head);
		var bodyObj=document.createElement("div");
		bodyObj.style.textAlign="left";
		bodyObj.style.padding="10px";
		bodyObj.innerHTML='<h3>MobileRota charges for this service</h3><p style="font-size:11px;">An administration charge of &pound;'+resendPayment+' will be charged to resend the MobileRota Application to your new phone or new phone number.</p><p style="font-size:11px;"> This will restore your subscription in line with the original start and end dates.</p>';


		warning.appendChild(bodyObj);

		var buttons=document.createElement("div");
		buttons.style.padding="10px";

		var cancel=document.createElement("div");

		var keptNumbera=document.createElement("input");
		keptNumbera.type="button";
		keptNumbera.value="I have kept my existing number";
		keptNumbera.className="nextButton2";
		keptNumbera.style.margin="0px";
		keptNumbera.style.color="#FFFFFF";
		keptNumbera.style.backgroundColor="#2B6371";
		keptNumbera.style.paddingBottom="5px";
		keptNumbera.style.border="outset 1px #2B6371";
		keptNumbera.style.cssFloat="left";
		keptNumbera.onclick=delegate(parentClass,keptNumber,mobileNumber,intMobileNumber,code, phoneType);


		var newNumber=document.createElement("input");
		newNumber.type="button";
		newNumber.value="My phone number has changed";
		newNumber.className="nextButton2";
		newNumber.style.margin="0px";
		newNumber.style.color="#FFFFFF";
		newNumber.style.backgroundColor="#FF0000";
		newNumber.style.paddingBottom="5px";
		newNumber.style.border="outset 1px #FF0000";
		newNumber.style.cssFloat="right";
		newNumber.onclick=delegate(parentClass,method,mobileNumber,intMobileNumber,code);

		cancel.appendChild(keptNumbera);
		cancel.appendChild(newNumber);

		buttons.appendChild(cancel);
		warning.appendChild(buttons);

			var div=document.createElement("div");
		div.innerHTML="&nbsp;";
		warning.appendChild(div);

		document.body.appendChild(warning);

	}

	function noComplete() {
		window.location="logout.php?url=user.php";
	}

	function closeAdditional() {
		window.location="user.php?loc=phones";
	}
	function hideWarning() {
		if(document.getElementById("warningContainer")) {
			document.body.removeChild(document.getElementById("warningContainer"));
		}
		if(xIE6) {
			if(document.getElementById("country") !=null) {
				document.getElementById("country").style.visibility="visible";
			}
		}
		hideMask2();
	}
