function order_klik(target) {

target.action ="http://www.cigarro-plaza.com/order_klik.php";
target.submit();
}


function clear_text(target) {


	target.S_Name.value = '';
	target.S_LastName.value = '';
	target.S_Phone.value = '';
	target.S_Mail.value = '';
	target.S_Address.value = '';
	target.S_City.value = '';
	target.S_State.value = '';
	target.S_ZipCode.value = '';
	target.S_Country.value = '';

	target.B_Name.value = '';
	target.B_LastName.value = '';
	target.B_Phone.value = '';
	target.B_Mail.value = '';
	target.B_Address.value = '';
	target.B_City.value = '';
	target.B_State.value = '';
	target.B_ZipCode.value = '';
	target.B_Country.value = '';

}

function chi() {

document.OrderForm.addr2.checked=0;

}









function unlockText(target) {

// Anee iinoaaeai oea?ie, nieiaai aeiee?iaaiea eiiiee
if (target.addr.checked) {


	target.S_Name.value = target.B_Name.value;
	target.S_LastName.value = target.B_LastName.value;
	target.S_Phone.value = target.B_Phone.value;
	target.S_Mail.value = target.B_Mail.value;
	target.S_Address.value = target.B_Address.value;
	target.S_City.value = target.B_City.value;
	target.S_State.value = target.B_State.value;
	target.S_ZipCode.value = target.B_ZipCode.value;
	target.S_Country.value = target.B_Country.value;
	}
// A i?ioeaiii neo?aa aiiau aeiee?oai eiiieo
else {

	target.S_Name.value = '';
	target.S_LastName.value = '';
	target.S_Phone.value = '';
	target.S_Mail.value = '';
	target.S_Address.value = '';
	target.S_City.value = '';
	target.S_State.value = '';
	target.S_ZipCode.value = '';
	target.S_Country.value = '';
}
}


function unlockButton(target) {

// Anee iinoaaeai oea?ie, nieiaai aeiee?iaaiea eiiiee
if (target.addr2.checked) target.verify.disabled = 0

// A i?ioeaiii neo?aa aiiau aeiee?oai eiiieo
else target.verify.disabled = 1
}


function plashtane(target) {

target.action ="http://www.cigarro-plaza.com/";
target.submit();
}



function deistvie(act) 
{

var pole = document.getElementById('hid');
//var forma = document.getElementById('or');
pole.value = act;
document.or.submit();
}







function HideRow(id_to)
{ 
var row = document.getElementById(id_to);
var osn=id_to-10000;
var pic=id_to+10000;

var row0 = document.getElementById(osn);
var pici = document.getElementById(pic);
var browse = navigator.appName;
//var browse = navigator.userAgent;
//alert(browse);

if (browse == 'Netscape'||browse == 'Mozilla')
{


if (row.style.display == 'table-row')
{
row.style.display = 'none';
row0.style.backgroundColor='#F2F2F3';
pici.src="kopcheta/bulet_right.png";
}  
else 
{
row.style.display = 'table-row';
row0.style.backgroundColor='#D4D4D5';
pici.src="kopcheta/bulet_left.png";
}
}
else 
{


if (row.style.display == 'block')
{
row.style.display = 'none';
row0.style.backgroundColor='#F2F2F3';
pici.src="kopcheta/bulet_right.png";
}  
else 
{
row.style.display = 'block';
row0.style.backgroundColor='#D4D4D5';
pici.src="kopcheta/bulet_left.png";
}
}
}


function getX(evt){
if(evt.x){ return evt.x; }
if(evt.pageX){ return evt.pageX; }
}
function getY(evt){
if(evt.y){ return evt.y; }
if(evt.pageY){ return evt.pageY; }
}

function alertCoords1(evt,id){
//alert("X = "+ getX(evt) +"\nY = "+ getY(evt));
var xixa=getX(evt);
var ygreka=getY(evt);

showWMTT(id,xixa,ygreka);

}
da=0;
ne=0;
wmtt = null;
menuobj= null;
var ie5=document.all && !window.opera
var ns6=document.getElementById

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}


function alertCoords(e,id)
{

if(ne==0){
menuobj=document.getElementById(id)


/*menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth-190+"px" : window.pageXOffset+eventX-menuobj.contentwidth-190+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-190+"px" : window.pageXOffset+eventX-190+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight-25+"px" : window.pageYOffset+eventY-menuobj.contentheight-25+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY-25+"px" : window.pageYOffset+eventY-25+"px"
*/
menuobj.style.display="block"


ne=1;
return 0;
}
}

function hide() {

setTimeout('hideWMTT();',2000);

}
function hideWMTT() {

if(da==0){	

menuobj.style.display = "none";
ne=0;}
}
