var xmlHttp;
var id;
var colorwa;
var Adadesh;
var starteshA;
var nanayok;

function showColor(warn,adadesh,startesh,nanay,moval4,moval5,moval6,moval7){


	colorwa = warn;
	Adadesh = encodeURI(adadesh);
	starteshA = encodeURI(startesh);
	nanayok = encodeURI(nanay);
	moval4 = encodeURI(moval4);
	moval5 = encodeURI(moval5);
	moval6 = encodeURI(moval6);
	moval7 = encodeURI(moval7);
	
var str = "r="+(new Date().getTime()) ;



id = "HmyColorNew";

if (colorwa == "LoginCheck"){

	if (Adadesh == "LogPage"){
		var xUsername_LoginOkk = encodeURI(document.all.xUsername_Login2.value);
		var xPassword_LoginOkk = encodeURI(document.all.xPassword_Login2.value);
	}else{
		var xUsername_LoginOkk = encodeURI(document.all.xUsername_Login.value);
		var xPassword_LoginOkk = encodeURI(document.all.xPassword_Login.value);
	}

var url="Check.php?xUsername_Login="+xUsername_LoginOkk+'&xPassword_Login='+xPassword_LoginOkk+'&r='+(new Date().getTime());

}

if (colorwa == "MaxCount"){

	var url="MaxCount_Div.php?r="+(new Date().getTime());
	
}

if (colorwa == "RetrSubGroup"){

	var url="RetrSubGroup.php?ID="+Adadesh+'&r='+(new Date().getTime());

}

if (colorwa == "Retr_Fish"){

	var url="eshop_Retr_Fish.php?r="+(new Date().getTime());
	
}


if (colorwa == "Special"){
	
	var url="Special_Div.php?r="+(new Date().getTime());
	
}
if (colorwa == "Newest"){

	var url="Newest_Div.php?r="+(new Date().getTime());
	
}

if (colorwa == "AgentsLoad"){

	var url="Agents_Div.php?r="+(new Date().getTime());
	
}

if (colorwa == "ServicesLoad"){

	var url="Services_Div.php?r="+(new Date().getTime());
	
}

if (colorwa == "ArticlesLoad"){

	var url="Articles_Div.php?r="+(new Date().getTime());
	
}

if (colorwa == "Tosie"){

	var url="Tosie.php?IDFaq="+Adadesh+'&IDComment='+starteshA+'&r='+(new Date().getTime());
	
}

if (colorwa == "Mokhalef"){
	
	var url="Mokhalef.php?IDFaq="+Adadesh+'&IDComment='+starteshA+'&r='+(new Date().getTime());	
}


if (colorwa == "Reg_Class"){

	var url="Reg_Class.php?CID="+Adadesh+'&r='+(new Date().getTime());
	
}


if (colorwa == "Order_product_buy"){

	var url="Order_buy_Pro.php?username_order="+starteshA+'&tozihat_order='+Adadesh+
	'&pro_id='+nanayok+'&r='+(new Date().getTime());
	//alert(url);
}


if (colorwa == "company"){
var url="Retrive_Folders.php?r="+(new Date().getTime());
}

if (colorwa == "FinalBuy"){
var url="eshop_FinalBuy.php?r="+(new Date().getTime());
}


if (colorwa == "RegisterNewUser"){
	//encodeURI(
	//alert('dfdfdf');
	
	var NameOkk = encodeURI(document.all.xname.value);
	
	var FamilyOkk = encodeURI(document.all.xfamily.value);
	var UsernameOkk = encodeURI(document.all.xusername.value);
	var PasswordOkk = encodeURI(document.all.xpass.value);
	var EmailOkk = encodeURI(document.all.xemail1.value);
		
		
	//var Country = encodeURI(document.all.Country.value);
	var PicCode = encodeURI(document.all.PicCode.value);
	var TelNumber = encodeURI(document.all.xtel.value);
	
	var Occup = encodeURI(document.all.xoccup.value);

	var YourResponse = encodeURI(document.all.YourResponse.value);
	
	
	var xSal_T = encodeURI(document.all.xSal_T.value);
	var xmobile_T = encodeURI(document.all.xmobile.value);
	
	 var xRooz_T = document.all.xRooz_T;
    var xRooz_T = encodeURI(xRooz_T.options[xRooz_T.selectedIndex].value);	
    
     var xMah_T = document.all.xMah_T;
    var xMah_T = encodeURI(xMah_T.options[xMah_T.selectedIndex].value);
    
	 
    
	 var myww = document.all.SecurityQuestions;
    var SQ = encodeURI(myww.options[myww.selectedIndex].value);	
    
	var YourAdrress = encodeURI(document.all.xaddress.value);
	
    var myent3 = document.all.xcity;
    var YourCity = encodeURI(myent3.options[myent3.selectedIndex].value);	
    
    var myentxc = document.all.xcountry;
    var YourCountry = encodeURI(myentxc.options[myentxc.selectedIndex].value);	
    //alert(myentshode3);
   // alert(NameOkk);
 
	var url="SignUp2.php?Username="+UsernameOkk+'&xmobile='+xmobile_T+'&xRooz_T='+xRooz_T+'&xMah_T='+xMah_T+'&xSal_T='+xSal_T+'&Password='+PasswordOkk+'&Name='+NameOkk+'&Family='+FamilyOkk+
	'&Email1='+EmailOkk+'&TelNumber='+TelNumber+
	'&YourCity='+YourCity+'&YourAdrress='+YourAdrress+'&SQ='+SQ+'&YourResponse='+YourResponse+
	'&YourCountry='+YourCountry+'&PicCode='+PicCode+'&Occup='+Occup+'&r='+(new Date().getTime());

}


if (colorwa == "SendContact"){


	var xname = encodeURI(document.all.xname.value);
	var xemail = encodeURI(document.all.xemail.value);
	var xtel = encodeURI(document.all.xtel.value);
	var xtext = encodeURI(document.all.xtext.value);
	var PicCode = encodeURI(document.all.PicCode_Contact.value);

	var url="ContactSend.php?xname="+xname+'&xemail='+xemail+'&xtel='+xtel+'&xtext='+xtext+'&PicCode='+PicCode+'&r='+(new Date().getTime());

}


if (colorwa == "Send_Comment"){
	
	var Comment_Name = encodeURI(document.all.Comment_Name.value);
	var Comment_Email = encodeURI(document.all.Comment_Email.value);
	var Comment_Matn = encodeURI(document.all.Comment_Matn.value);
	var PicCode = encodeURI(document.all.PicCode.value);

 if (Comment_Name == ''){
 	alert('نام وارد نشده است');
 	return false;
 }
 
  if (Comment_Matn == ''){
 	alert('نظر شما وارد نشده است');
 	return false;
 }
	var url="Send_Comment.php?Comment_Name="+Comment_Name+'&Comment_Email='+Comment_Email+'&Comment_Matn='+Comment_Matn+'&PicCode='+PicCode+'&News_ID='+Adadesh+'&Mos_ID='+starteshA+'&r='+(new Date().getTime());

}


if (colorwa == "Send_CommentOp"){
	


	var YourName_Comm = encodeURI(document.all.YourName_Comm.value);
	var YourCity_Comm = encodeURI(document.all.YourCity_Comm.value);
	var YourEmail_Comm = encodeURI(document.all.YourEmail_Comm.value);
	var YourText_Comm = encodeURI(document.all.YourText_Comm.value);
	var PicCode = encodeURI(document.all.PicCode.value);

 if (YourName_Comm == ''){
 	alert('نام وارد نشده است');
 	return false;
 }
 
  if (YourText_Comm == ''){
 	alert('نظر شما وارد نشده است');
 	return false;
 }
 
	var url="Send_CommentOp.php?Comment_Name="+YourName_Comm+'&Comment_Email='+YourEmail_Comm+'&Comment_Matn='+YourText_Comm+'&PicCode='+PicCode+'&Comment_City='+YourCity_Comm+'&IDFaq='+Adadesh+'&r='+(new Date().getTime());

}


if (colorwa == "Comment_Filter"){
	var RNewest = document.all.R_Sort[0].checked;
	var RTosie = document.all.R_Sort[1].checked;

	var url="Filter_Comment.php?RNewest="+RNewest+'&RTosie='+RTosie+'&ID_FAQ='+Adadesh+'&r='+(new Date().getTime());

}




if (colorwa == "TellFriend"){
	//encodeURI(
	var T_YourName = encodeURI(document.all.T_YourName.value);
	var T_YourEmail = encodeURI(document.all.T_YourEmail.value);
	var T_FName = encodeURI(document.all.T_FName.value);
	var T_FEmail = encodeURI(document.all.T_FEmail.value);

	var TPicCode = encodeURI(document.all.TPicCode.value);

 if (TPicCode == ''){
 	alert('کد امنیتی وارد نشده است');
 	return false;
 }
 
 if (T_YourName == ''){
 	alert('نام شما وارد نشده است');
 	return false;
 }
 
  if (T_YourEmail == ''){
 	alert('ایمیل شما وارد نشده است');
 	return false;
 }
 
   if (T_FName == ''){
 	alert('نام دوست شما وارد نشده است');
 	document.getElementById('T_FName').style.backgroundColor="#FFB0B0";
 	return false;
 }
 
    if (T_FEmail == ''){
 	alert('ایمیل دوست شما وارد نشده است');
 	return false;
 }

var warn=0;

document.getElementById('T_FName').style.backgroundColor="#FFFFFF";
document.getElementById('T_FEmail').style.backgroundColor="#FFFFFF";

if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.all.T_FEmail.value)))
		{
			alert("ایمیل دوست شما به صورت صحیح وارد نشده است");
			document.getElementById('T_FEmail').style.backgroundColor="#FFB0B0";
			warn=1;
			return false;
		}

if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.all.T_YourEmail.value)))
		{
			alert("ایمیل شما به صورت صحیح وارد نشده است");
			document.getElementById('T_YourEmail').style.backgroundColor="#FFB0B0";
			warn=1;
			return false;
		}
		
	var url="TellFriend.php?T_FName="+T_FName+'&T_YourName='+T_YourName+'&T_YourEmail='+T_YourEmail+'&T_FName='+T_FName+
	'&T_FEmail='+T_FEmail+'&TPicCode='+TPicCode+'&Mos_ID='+starteshA+'&News_ID='+Adadesh+'&r='+(new Date().getTime());

	//alert(url);
}





xmlHttp=GetXmlHttpObject(stateChanged);
xmlHttp.open("POST", url , true);
xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); 
//xmlHttp.setRequestHeader("enctype", "multipart/form-data"); 
xmlHttp.send(str);


}






function stateChanged() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState=="loading")
{	
	
	if (colorwa == "LoginCheck"){
		document.getElementById('LoginS').innerHTML="<p align='right'><img src='../ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";
	}
	
	if (colorwa == "Retr_Fish"){
		document.getElementById('KOLL').innerHTML="<p align='right'><img src='ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";
	}
	
	if (colorwa == "Send_Comment"){
		document.getElementById('Comment_DIV').innerHTML="<p align='right'><img src='ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";
	}
	
	if (colorwa == "Send_CommentOp"){
		document.getElementById('mComDiv').innerHTML="<p align='right'><img src='ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";
	}
	
	if (colorwa == "TellFriend"){
		document.getElementById('Friend_Div').innerHTML="<p align='right'><img src='ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";
	}
	
	if (colorwa == "Reg_Class"){
		document.getElementById('LoadTD').innerHTML="<p align='right'><img src='loader.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";
	}
	
	if (colorwa == "Comment_Filter"){
		document.getElementById('Comment_DIV').innerHTML="<p align='right'><img src='ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";	
	}
	if (colorwa == "ArticlesLoad"){
		document.getElementById('Main_Div').innerHTML="<p align='right'><img src='ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";
	}
	if (colorwa == "RegisterNewUser"){
		document.getElementById('reg_DIVV').innerHTML="<p align='right'><img src='ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";
	}
	if (colorwa == "v_detail"){
		document.getElementById('PicCView').innerHTML="<p align='right'><img src='ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";	
	}
	if (colorwa == "Order_product"){
		var mDivID = document.all.LastOrderID.value;
		document.getElementById('Buy_Product_'+mDivID).innerHTML="<p align='right'><img src='ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";	
	}
	if (colorwa == "Order_product_buy"){
		var mDivID = document.all.LastOrderID.value;
		document.getElementById('Buy_Product_'+mDivID).innerHTML="<p align='right'><img src='ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";
	}
	if (colorwa == "SendContact"){
			document.getElementById('reg_DIVV').innerHTML="<p align='right'><img src='ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";
	}
	if (colorwa == "Tosie"){
		//document.getElementById('IDmovafegh2').innerHTML="<p align='right'><img src='ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";
	}
	if (colorwa == "Mokhalef"){
		//document.getElementById('IDmokhalef2').innerHTML="<p align='right'><img src='ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";	
	}
	if (colorwa == "FinalBuy"){
		document.getElementById('basketWrap').innerHTML="<p align='right'><img src='ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";
	}
	if (colorwa == "RetrSubGroup"){
		document.getElementById('SubGroupS').innerHTML="<p align='right'><img src='ajax-loader2.gif'><font face='tahoma' size='1'>لطفا كمي صبر نماييد </font></p>";
	}

}


if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
	if (colorwa == "RetrSubGroup"){
		document.getElementById('SubGroupS').innerHTML=xmlHttp.responseText;
	}
	if (colorwa == "LoginCheck"){
		document.getElementById('LoginS').innerHTML="";
		
		//alert(xmlHttp.responseText);
		
		if (xmlHttp.responseText == "NotCorrect"){
			alert('Username Or Password Is Not Correct');
		}
		if (xmlHttp.responseText == "NotApprov_Email"){
			alert('Please read your email and click activation link in that');
		}
		if (xmlHttp.responseText == "NotApprov_Admin"){
			alert('Your are not approv from administrator');
		}
		if (xmlHttp.responseText == "NotActive"){
			alert('Your can not access to your account');
		}
		if (xmlHttp.responseText != "NotCorrect" && xmlHttp.responseText != "NotApprov_Admin" && xmlHttp.responseText != "NotActive" && xmlHttp.responseText != "NotApprov_Email"){
			window.parent.location.href='Member.php';
		}
	}
	if (colorwa == "FinalBuy"){
		document.getElementById('basketWrap').innerHTML=xmlHttp.responseText;
	}
	if (colorwa == "Retr_Fish"){
		//alert('bbbb');
		document.getElementById('KOLL').innerHTML=xmlHttp.responseText;
	}
	if (colorwa == "Reg_Class"){
		document.getElementById('LoadTD').innerHTML=xmlHttp.responseText;
	}
	
	
	

		
	if (colorwa == "Tosie"){
		var Myresponseokw = xmlHttp.responseText;
		IDCOMNAZAR = Myresponseokw.split('PSplit');
		okk1a=decodeURI(IDCOMNAZAR[0]);
		okk2a=decodeURI(IDCOMNAZAR[1]);
		
		document.getElementById('IDmovafegh2'+okk2a).innerHTML="";
		document.getElementById('IDmovafegh'+okk2a).innerHTML=okk1a;
	}

	if (colorwa == "Mokhalef"){
		var Myresponseokw = xmlHttp.responseText;
		IDCOMNAZAR = Myresponseokw.split('PSplit');
		okk1a=decodeURI(IDCOMNAZAR[0]);
		okk2a=decodeURI(IDCOMNAZAR[1]);
		
		document.getElementById('IDmokhalef2'+okk2a).innerHTML="";
		document.getElementById('IDmokhalef'+okk2a).innerHTML=okk1a;
	}
	
	if (colorwa == "Comment_Filter"){
		document.getElementById('Comment_DIV').innerHTML=xmlHttp.responseText;
	}
	
	if (colorwa == "FilterV"){
		document.getElementById('Filter_Listt').innerHTML=xmlHttp.responseText;
	}
	if (colorwa == "Send_Comment"){
		if (xmlHttp.responseText == "Ok"){
			document.getElementById('Comment_DIV').innerHTML="<span style='background-color: #008000'><font color='#FFFFFF'>&nbsp;نظر شما ثبت شد </font></span>";
		}
		if (xmlHttp.responseText == "SecureCode"){
			document.getElementById('Comment_DIV').innerHTML="<b>&nbsp;<font color='#FFFFFF'><span style='background-color: #990100'> کد امنیتی اشتباه وارد شده است</span></font></b>";
		}
		//document.getElementById('Comment_DIV').innerHTML=xmlHttp.responseText;
	}
	
	if (colorwa == "Send_CommentOp"){
		if (xmlHttp.responseText == "Ok"){
			document.getElementById('mComDiv').innerHTML="<span style='background-color: #008000'><font color='#FFFFFF'>&nbsp;نظر شما ثبت شد </font></span>";
		}
		if (xmlHttp.responseText == "SecureCode"){
			document.getElementById('mComDiv').innerHTML="<b>&nbsp;<font color='#FFFFFF' style='font-size:8pt'><span style='background-color: #990100'> کد امنیتی اشتباه وارد شده است</span></font></b>";
		}
	}
	
	if (colorwa == "TellFriend"){
		if (xmlHttp.responseText == "Ok"){
			document.getElementById('Friend_Div').innerHTML="<span style='background-color: #008000' style='font-size:8pt'><font color='#FFFFFF'>&nbsp;ارسال شد </font></span>";
		}
		if (xmlHttp.responseText == "SecureCode"){
			document.getElementById('Friend_Div').innerHTML="<b>&nbsp;<font color='#FFFFFF' style='font-size:8pt'><span style='background-color: #990100'> کد امنیتی اشتباه وارد شده است</span></font></b>";
		}
		//document.getElementById('Comment_DIV').innerHTML=xmlHttp.responseText;
	}
	
	
	if (colorwa == "SendContact"){
		
		if (xmlHttp.responseText == "PICCode"){
			alert('عبارت موجود در تصویر امنیتی به درستی وارد نشده است');
			document.getElementById('reg_DIVV').innerHTML="<font face='Tahoma' size='2' color='#666666'>عبارت موجود در تصویر امنیتی به درستی وارد نشده است</font>";
		}else{
			alert('پیام شما ارسال شد');
			document.getElementById('reg_DIVV').innerHTML="<font face='Tahoma' size='2' color='#666666'>پیام شما ارسال شد ، منتظر تماس ما باشید</font>";
		}
	}
	if (colorwa == "AboutLoad"){
		var Myresponseokw = xmlHttp.responseText;
		
		document.getElementById('Main_Div').innerHTML=Myresponseokw;
	}
	if (colorwa == "MaxCount"){
		var Myresponseokw = xmlHttp.responseText;
		
		document.getElementById('tab_Menu').innerHTML=Myresponseokw;
		
	}
	
	if (colorwa == "Newest"){
		var Myresponseokw = xmlHttp.responseText;
		
		document.getElementById('tab_Menu').innerHTML=Myresponseokw;
			
	}
	if (colorwa == "Special"){
		var Myresponseokw = xmlHttp.responseText;
		
		document.getElementById('tab_Menu').innerHTML=Myresponseokw;
			
	}
	
	if (colorwa == "AgentsLoad"){
		var Myresponseokw = xmlHttp.responseText;
		document.getElementById('Main_Div').innerHTML=Myresponseokw;
	}
	if (colorwa == "ServicesLoad"){
			var Myresponseokw = xmlHttp.responseText;
			document.getElementById('Main_Div').innerHTML=Myresponseokw;
	}
	
	if (colorwa == "ArticlesLoad"){
		var Myresponseokw = xmlHttp.responseText;
		document.getElementById('Main_Div').innerHTML=Myresponseokw;
	}
	
	
	if (colorwa == "Order_product_buy"){
		var Myresponseokw = xmlHttp.responseText;
		HeadAzMatnN = Myresponseokw.split('PSplit');
		okk1=decodeURI(HeadAzMatnN[0]);
		document.getElementById('Buy_Product_'+okk1).innerHTML="";
		okk2=decodeURI(HeadAzMatnN[1]);
		if (okk2 == "UsernameError"){
			alert('نام کاربری وارد شده در سیستم وجود ندارد');
		}else{
			alert('سفارش شما ارسال شد ، منتظر تماس ما باشید');
		}
	}
	
	if (colorwa == "company"){
			document.getElementById('company_msg').innerHTML=xmlHttp.responseText;
	}
		if (colorwa == "RegisterNewUser"){
				document.getElementById('reg_DIVV').innerHTML="";

		//alert(xmlHttp.responseText+'ffff');
		if (xmlHttp.responseText == "PICCode"){
			alert('خطا : عبارت موجود در تصویر به طور صحیح وارد نشده است');
			return false;
		}else if (xmlHttp.responseText == "CompanyName"){
			alert('خطا : در نام شرکت کاراکترهای نامفهوم وجود دارد');
			}else if (xmlHttp.responseText == "PasswordEmpty"){
			alert('خطا : کلمه عبور وارد نشده است');
			}else if (xmlHttp.responseText == "NameEmpty"){
			alert('خطا : نام وارد نشده است');
			}else if (xmlHttp.responseText == "FamilyEmpty"){
			alert('خطا : نام خانوادگی وارد نشده است');
			}else if (xmlHttp.responseText == "UsernameEmpty"){
			alert('خطا : نام کاربری دلخواه خود را وارد نکرده اید');
		}else if (xmlHttp.responseText == "UsernameExist"){
			alert('این نام کاربری قبلا در سیستم ثبت شده است ، لطفا نام کاربری دیگری انتخاب نمایید');
		}else if (xmlHttp.responseText == "EmailExist"){
			alert('آدرس ایمیل وارد شده در سیستم وجود دارد ، لطفا آدرس ایمیل دیگری وارد نمایید');
		}else if (xmlHttp.responseText == "UserName"){
			alert('لطفا برای نام کاربری فقط از حروف انگلیسی و اعداد و یا کاراکتر _ استفاده نمایید');
		}else {
			window.parent.location.href='Login.php?xuser='+xmlHttp.responseText;
		}
		
		
	}
	
	if (colorwa == "v_detail"){
	var Myresponseokw = xmlHttp.responseText;
		HeadAzMatn = Myresponseokw.split('<JODASSHOD>');
		
		okk1=decodeURI(HeadAzMatn[1]);
		okk0=decodeURI(HeadAzMatn[0]);
		okk2=decodeURI(HeadAzMatn[2]);
		okk3=decodeURI(HeadAzMatn[3]);
		okk4=decodeURI(HeadAzMatn[4]);
		okk5=decodeURI(HeadAzMatn[5]);
		okk6=decodeURI(HeadAzMatn[6]);
		
		document.getElementById('Noe_Sang').value=okk2;
		document.getElementById('Analyse_Fiz').value=okk1 ;
		document.getElementById('Analyse_Shi').value=okk0 ;
		document.getElementById('Rang').value=okk4 ;
		document.getElementById('Location_madan').value=okk5 ;
		document.getElementById('Code').value=okk6 ;
		if (okk3 != ''){
			document.getElementById('PicCView').style.display='';
			document.getElementById('PicCView').style.visibility='visible';
			document.getElementById('PicCView').innerHTML=okk3;
		}else{
			document.getElementById('PicCView').style.display='none';
			document.getElementById('PicCView').style.visibility='hidden';
		}
}


}
}

function GetXmlHttpObject(handler){ 

var objXmlHttp=null;
if (navigator.userAgent.indexOf("Opera")>=0)
{
alert("This example doesn't work in Opera") ;
return ;
}

if (navigator.userAgent.indexOf("MSIE")>=0)
{ 
var strName="Msxml2.XMLHTTP";
if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
{
strName="Microsoft.XMLHTTP";
} 
try
{
objXmlHttp=new ActiveXObject(strName);
objXmlHttp.onreadystatechange=handler ;
return objXmlHttp;
} 
catch(e)
{ 
alert("Error. Scripting for ActiveX might be disabled");
return;
} 
} 
if (navigator.userAgent.indexOf("Mozilla")>=0)
{
objXmlHttp=new XMLHttpRequest();
objXmlHttp.onload=handler;
objXmlHttp.onerror=handler;
return objXmlHttp;
}
}
