function showPopUp(TM, ref,seria,chars,im){
	nam=window.open('about:blank','',"height=650,width=850,status=yes,toolbar=no,menubar=no,location=no,resizable=yes")
	price="0.000 руб."
	if (nam != null){
	var st = ''
	st += "<html><head><title>швейцарские часы "+seria+" "+ref+"</title><link href=\"../../../popa.css\" rel=\"stylesheet\" type=\"text/css\" media=\"screen\"></head>"
	st += "<body><div><img src=\""+im+"\"></div><h1>"+seria+" "+ref+"</h1><div align='left' id=\"song1\">"+chars+"</div><div align='left' id=\"prices\"><!-- ЦЕНА: &nbsp; "+price+" --></div></body></html>"

	nam.document.write(st)
	nam.document.close
	}
}
///////////////////////////////////////////////////////////////////////////////
function coupon(url,wnm){
//if (wnm) {window.wnm.focus();return false}
namchr=window.open(url,wnm,"height=570,width=520,status=yes,toolbar=no,menubar=no,location=no,resizable=yes")
namchr.focus()
return false
}
/////////////////////////////////////////////////////////////////////////////////
function verifyEmailAndName(theform){
	if ((theform.email.value == "") || (theform.name.value == "")){
		theform.sendbutton.disabled=true
	}else{
		theform.sendbutton.disabled=false
	}
}
/////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////
function enlarge(which,e,Xsize){
	if (document.all){
		if (showimage.style.visibility=="hidden" || showimage.style.visibility==""){
			showimage.style.left=document.body.scrollLeft+event.clientX-Xsize;
			showimage.style.top=document.body.scrollTop+50
			showimage.innerHTML='<div align="right" style="width:'+Xsize+'px; background-color:#ffc0c0;"><span style="font-size:10px; color:#773300;">Вы можете перемещать изображение  &nbsp; </span><a href=# onClick="return enlarge(\'\',event)" style="background-color:#f00; color:#ffffee; text-decoration:none; margin-right:0px;"><b>&nbsp;ЗАКРЫТЬ </b></a></div><img src="'+which+'" style="border-top:1px solid  #a22;">'
			showimage.style.visibility="visible"
		}else showimage.style.visibility="hidden"
		return false}
	
	else if (document.layers){
		if (document.showimage.visibility=="hide"){
			document.showimage.document.write('<a href=# onClick="return enlarge(\'\',event)" style="font-family:verdana, tahoma, arial; font-size:12px;background-color:#ff0000;color:#ffffee;text-decoration:none;"><b>&nbsp;ЗАКРЫТЬ </b></a><span style="font-size:11px; font-family:verdana, tahoma, arial; color:#773300; background-color:#990000;">&nbsp; Вы можете перемещать изображение</span><a href="#" onMouseover="drag_dropns(showimage)"><br><img src="'+which+'" style="border-top:1px solid  #a22;"></a>')
			document.showimage.document.close()
			document.showimage.left=e.x
			document.showimage.top=e.y
			document.showimage.visibility="show"
		}
		else	document.showimage.visibility="hide"
		return false}
	else
		return true}
//////////////////////////////////////////////////////////////////////////////
var nsx
var nsy
var nstemp
function drag_dropns(name){
	temp=eval(name)
	temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
	temp.onmousedown=gons
	temp.onmousemove=dragns
	temp.onmouseup=stopns
	}
function gons(e){
	temp.captureEvents(Event.MOUSEMOVE)
	nsx=e.x
	nsy=e.y
	}
function dragns(e){
	temp.moveBy(e.x-nsx,e.y-nsy)
	return false
	}
function stopns(){
	temp.releaseEvents(Event.MOUSEMOVE)
	}
//drag drop function for IE 4+////
var dragapproved=false
function drag_dropie(){
	if (dragapproved==true){
		document.all.showimage.style.pixelLeft=tempx+event.clientX-iex
		document.all.showimage.style.pixelTop=tempy+event.clientY-iey
		return false 
		}
	}
function initializedragie(){
	if (event.srcElement.parentElement.id=="showimage"){
		iex=event.clientX
		iey=event.clientY
		tempx=showimage.style.pixelLeft
		tempy=showimage.style.pixelTop
		dragapproved=true
		document.onmousemove=drag_dropie
		}
	}
if (document.all){
document.onmousedown=initializedragie
document.onmouseup=new Function("dragapproved=false")}
/////////////////////////////////////////////////////////////////////////////////
function verifyEmailAndName(theform){
	if ((theform.email.value == "") || (theform.name.value == "")){
		theform.sendbutton.disabled=true
	}else{
		theform.sendbutton.disabled=false
	}
}
/////////////////////////////////////////////////
messageIsSentV = false;
function messageIsSent(){
	alert ("Сообщение отправлено. Спасибо!");
}
////////////
function aboutPrices(){
	alert('Цена, которую производитель устанавливает в плане рекомендации для магазинов России на длительный промежуток времени.\n\nРеальная текущая цена зависит от множества факторов и может существенно отличаться от рекомендованной.\nЕё можно узнать непосредственно в салонах.')
}
/////////////
 function showHide(contentid){
 	if (eval(contentid+".style.display=='none'")){
		eval(contentid+".style.display=''")
	}else{
		eval(contentid+".style.display='none'"); 
	}
 }
///////
/////////////////////////////////////////////////////////////////////////////////////////////////////
function shopman(){
	location.href="http://www.shopman.ru/watches/auguste-reymond/dealers"
}
