// JavaScript Document

var req=null;

function sendOrder(url){
req=initRequest();
if (req){
req.onreadystatechange=onChangeState;
req.open("POST",url,true);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
req.send(true);
}	
}

function initRequest(){
var xRequest=null;
if (window.XMLHttpRequest){
xRequest=new XMLHttpRequest();
} else if (window.ActiveXObject){
xRequest=new ActiveXObject("Microsoft.XMLHTTP");
}
return xRequest;
}

function onChangeState(){
//var ready=req.readyState;	
if (req.readyState==4){
//alert(req.responseText);	
oCenter.innerHTML=req.responseText;
}else{
oCenter.innerHTML="loading...["+req.readyState+"]";
}
}

function show_pict_cont(this_pict){
vHeight=this_pict.height*2;
vWidth=this_pict.width*2;
strUrl='width=' +vWidth+ ',height=' +vHeight+',scrollbars=auto'
var winPicture=window.open('','Galery',strUrl);
winPicture.document.writeln('<body style="margin: 0px;"  bgcolor="RGB(231,190,204)"> <p align="center"><img src="'+ this_pict.src+'" border="0" width="' + vWidth + '" height="'+vHeight +'"/></p></body>');

}





