<!--
function testclip()//???????,??print??
{
 try {
  if(clipboardData.getData("Text")||clipboardData.getData("HTML")||clipboardData.getData("URL")) 
   {
   null;
   }
  }
 catch(e){
  clipboardData.setData("Text","")
  }
 setTimeout("testclip()",500)
}
//testclip()
 
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function writeCommonBar() {
document.write('<table width="780"  border="0" align="center" cellpadding="0" cellspacing="0" class="1pix"><tr bgcolor="807E62"><td colspan="2">&nbsp;</td></tr><tr><td width="350" rowspan="2" align="center" bgcolor="#F0F0F0"><a href="/index.asp"><img src="/images/cd_03.gif" width="289" height="53" border="0"></a></td><td width="429" align="right" valign="top" bgcolor="F0F0F0"><img src="/images/winkingarts_05.gif" width="174" height="27" border="0" usemap="#mainmenu"></td></tr><tr><td align="center" valign="bottom" bgcolor="F0F0F0"><table width="100%"  border="0" cellspacing="0" cellpadding="0"><tr><td><a href="/shop/" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image1","","/images/cd1_02.gif",1)><img src="/images/cd_02.gif" alt="shopping center" name="Image1" width="70" height="15" border="0"></a></td><td width="2"><img src="/images/cd_11.gif" width="2" height="15"></td><td><a href="/member/" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image2","","/images/cd1_04.gif",1)><img src="/images/cd_04.gif" alt="member account" name="Image2" width="92" height="15" border="0"></a></td><td width="2"><img src="/images/cd_11.gif" width="2" height="15"></td><td><a href="/shop/brief.asp" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image3","","/images/cd1_06.gif",1)><img src="/images/cd_06.gif" alt="brief introduction" name="Image3" width="126" height="15" border="0"></a></td><td width="2"><img src="/images/cd_11.gif" width="2" height="15"></td><td><a href="/cart/" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image4","","/images/cd1_08.gif",1)><img src="/images/cd_08.gif" alt="cart" name="Image4" width="42" height="15" border="0"></a></td><td width="2"><img src="/images/cd_11.gif" width="2" height="15"></td><td><a href="/shop/contact.asp" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image5","","/images/cd1_10.gif",1)><img src="/images/cd_10.gif" alt="contact us" name="Image5" width="85" height="15" border="0"></a></td></tr></table></td></tr><tr><td background="/images/winkingarts_10.gif" height="12" colspan="2" class="1pix">&nbsp;</td></tr></table><map name="mainmenu"><area shape="rect" coords="23,1,50,25" href="/index.asp" alt="home"><area shape="rect" coords="54,1,81,25" href="/cart/" alt="shopping cart"><area shape="rect" coords="85,1,112,25" href="/news/" alt="show news"><area shape="rect" coords="116,1,143,25" href="/shop/faq.asp" alt="show faq"><area shape="rect" coords="147,1,174,25" href="mailto:frank@hankafloral.com" alt="email"></map>');
}

function writetailBar(par) {
document.write('<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">');
if(par==1)
	document.write('<tr><td colspan="4" class=1pix bgcolor="#212000"></td></tr><tr><td colspan="4" align="center"><table width="88%"  border="0" cellpadding="0" cellspacing="0" class="line"><tr align="center" valign="bottom"><td height="30"><a href="/shop/style.asp?table=pstyle" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image6","","/images/1_117.gif",1)><img src="/images/3_117.gif" name="Image6" width="56" height="17" border="0"></a></td><td height="30"><img src="/images/1_118.gif" width="2" height="17"></td><td height="30"><a href="/shop/style.asp?table=psubject" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image7","","/images/1_119.gif",1)><img src="/images/3_119.gif" name="Image7" width="72" height="17" border="0"></a></td><td height="30"><img src="/images/1_118.gif" width="2" height="17"></td><td height="30"><a href="/shop/style.asp?table=partist" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image8","","/images/1_121.gif",1)><img src="/images/3_121.gif" name="Image8" width="63" height="17" border="0"></a></td><td height="30"><img src="/images/1_118.gif" width="2" height="17"></td><td height="30"><a href="/shop/list.asp?flag=3" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image9","","images/1_123.gif",1)><img src="/images/3_123.gif" name="Image9" width="97" height="17" border="0"></a></td><td height="30"><img src="/images/1_118.gif" width="2" height="17"></td><td height="30"><a href="/shop/list.asp?flag=2" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image10","","/images/1_125.gif",1)><img src="/images/3_125.gif" name="Image10" width="152" height="17" border="0"></a></td><td height="30"><img src="/images/1_118.gif" width="2" height="17"></td><td height="30"><a href="/shop/faq.asp" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image11","","images/1_127.gif",1)><img src="/images/3_127.gif" name="Image11" width="100" height="17" border="0"></a></td><td height="30"><img src="/images/1_118.gif" width="2" height="17"></td><td height="30"><a href="/shop/contact.asp" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image12","","images/1_129.gif",1)><img src="/images/3_129.gif" name="Image12" width="88" height="17" border="0"></a></td></tr><tr align="center"><td colspan="13"><font face="Verdana, Arial, Helvetica, sans-serif">E_MAIL ADDRESS:<a href="mailto:frank@hankafloral.com">frank@hankafloral.com</a>&nbsp;&nbsp;&nbsp;TELPHONE:0086-592-5367361&nbsp;&nbsp;&nbsp;FAX:0086-592-5367363</font></td></tr><tr align="center"><td colspan="13"><a href="http://120.33.51.75:88/registe_print.asp?id=4154" target="_blank"><img src="/include/js/hongdun.gif" border="0"></a></td></tr></table></td></tr>');
else
	document.write('<tr valign="middle" ><td height="35" colspan="4" align="center" background="/images/c1_01.gif"><table width="760" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" background="/images/c1_01.gif"><table width="10%"  border="0" cellspacing="0" cellpadding="0"><tr><td><a href="/shop/style.asp?table=pstyle" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image6","","/images/c2_02.gif",1)><img src="/images/c1_02.gif" name="Image6" width="64" height="40" border="0" id="Image6"></a></td><td><img src="/images/c1_16.gif" width="2" height="40"></td><td><a href="/shop/style.asp?table=psubject" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image7","","/images/c2_04.gif",1)><img src="/images/c1_04.gif" name="Image7" width="83" height="40" border="0" id="Image7"></a></td><td><img src="/images/c1_16.gif" width="2" height="40"></td><td><a href="/shop/style.asp?table=partist" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image8","","/images/c2_06.gif",1)><img src="/images/c1_06.gif" name="Image8" width="69" height="40" border="0" id="Image8"></a></td><td><img src="/images/c1_16.gif" width="2" height="40"></td><td><a href="/shop/list.asp?flag=3" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image9","","/images/c2_08.gif",1)><img src="/images/c1_08.gif" name="Image9" width="115" height="40" border="0" id="Image9"></a></td><td><img src="/images/c1_16.gif" width="2" height="40"></td><td><a href="/shop/list.asp?flag=2" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image10","","/images/c2_10.gif",1)><img src="/images/c1_10.gif" name="Image10" width="171" height="40" border="0" id="Image10"></a></td><td><img src="/images/c1_16.gif" width="2" height="40"></td><td><a href="/shop/brief.asp" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image11","","/images/c2_12.gif",1)><img src="/images/c1_12.gif" name="Image11" width="117" height="40" border="0" id="Image11"></a></td><td><img src="/images/c1_16.gif" width="2" height="40"></td><td><a href="/shop/contact.asp" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("Image12","","/images/c2_14.gif",1)><img src="/images/c1_14.gif" name="Image12" width="96" height="40" border="0" id="Image12"></a></td></tr></table></td></tr></table> </td></tr><tr><td height="20" colspan="4" align="center"><font face="Verdana, Arial, Helvetica, sans-serif">E_MAIL ADDRESS:<a href="mailto:frank@hankafloral.com">frank@hankafloral.com</a>&nbsp;&nbsp;&nbsp;TELPHONE:0086-592-5367361&nbsp;&nbsp;&nbsp;FAX:0086-592-5367363</font></td></tr><tr align="center"><td colspan="4"><a href="http://120.33.51.75:88/registe_print.asp?id=4154" target="_blank"><img src="/include/js/hongdun.gif" border="0"></a></td></tr>');
document.write('<tr align="center" valign="bottom"> <td colspan="4" bgcolor="#FFFFFF"><font color="#847D63"><strong>&nbsp;</strong></font></td></tr></table>');
}
function loadimgs(par){
	if(par == 1){
	//alert(par);
		MM_preloadImages('/images/cd1_02.gif','/images/cd1_04.gif','/images/cd1_06.gif','/images/cd1_08.gif','/images/cd1_10.gif','/images/n1_77.gif','/images/0408index_78.gif','/images/20040401a_66.gif','/images/1_117.gif','/images/1_119.gif','/images/1_121.gif','/images/1_123.gif','/images/1_125.gif','/images/1_127.gif','/images/1_129.gif');init();
	}
	if(par == 2){
	//alert(par);
		MM_preloadImages('/images/cd1_02.gif','/images/cd1_04.gif','/images/cd1_06.gif','/images/cd1_08.gif','/images/cd1_10.gif','/images/buy1.gif','/images/c2_02.gif','/images/c2_04.gif','/images/c2_06.gif','/images/c2_08.gif','/images/c2_10.gif','/images/c2_12.gif','/images/c2_14.gif','/shop/images/2004shopa_23.gif','/shop/images/2004shopa_25.gif','/shop/images/2004shopa_26.gif','/shopimages/2004shopa_27.gif');
	}
	if(par == 3){
	//alert(par);
		MM_preloadImages('/images/cd1_02.gif','/images/cd1_04.gif','/images/cd1_06.gif','/images/cd1_08.gif','/images/cd1_10.gif','/images/buy1.gif','/images/c2_02.gif','/images/c2_04.gif','/images/c2_06.gif','/images/c2_08.gif','/images/c2_10.gif','/images/c2_12.gif','/images/c2_14.gif');
	}
}

function author()
{
document.write('<table width="780" height="30" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="middle">Designed and operated by <a href="http://in5.net">in5.net</a></td></tr></table>');
}


//通用函数

function checkprice(a){
//检查浮点数
	var pattern = /^\d+(\.\d+)?$/;
    flag = pattern.test(a);
    if (flag)
    {
      return true;
    }
    else
    {
      return false;
    }
}

function verifyemail(email)
{
//检查邮件地址格式
    var pattern = /^([\.a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/;
    flag = pattern.test(email);
    if (flag)
    {
      return true;
    }
    else
    {
      return false;
    }
}

function verifdate(a)
{
//检查2005-1-1格式
    var pattern = /(\d\d\d\d)[-](1[0-2]|0?[1-9])[-](0?[1-9]$|[12][0-9]|3[01])+/;
    flag = pattern.test(a);
    if (flag)
    {
      return true;
    }
    else
    {
      return false;
    }
}

function check(obj)
{
	if (obj.username.value.length ==0)
		{
	  	alert("Input the vip id please!");
	  	obj.username.focus(); 
	  	return false; 
   		}
	else
		if(obj.username.value=="guest")
			return true;
		else
			if (obj.passwd.value.length ==0)
			{
	  		alert("Input the password please!");
	  		obj.passwd.focus(); 
	  		return false; 
    		} 	
	return true;  
}

function checkorder(obj)
{
	if (obj.ordercode.value.length ==0)
	{
	alert("Input the order NO. please!");
	obj.ordercode.focus(); 
	return false; 
	} 
	if(isNaN(obj.ordercode.value)){
		 alert("Order code should be digit without character!")
		 obj.ordercode.focus();
		 obj.ordercode.value="";
		 return false;
		}
return true;  
}

function setid(){
//上传文件时设置上传个数
	  str='<br>';
	  if(!window.form1.upcount.value)
	   	window.form1.upcount.value=1;
 	  for(i=1;i<=window.form1.upcount.value;i++)
	     str+='file'+i+':<input type="file" name="file'+i+'" style="width:350" class="tx1"><br>';
	  window.upid.innerHTML=str;
}

function SetDefaultValue(S , V)
{
//设置下拉列表返回默认值
  for(i=0;i<S.length;i++)
  {
    if (S.options[i].value == V)
    {
      S.options[i].selected = true;
    }
  }
}

function checkmainch(obj) {
	/*if (obj.prokey.value.length >0)	{
		if(obj.finditem[1].checked) {
			if(isNaN(obj.prokey.value)){
			 alert("painting code should be digit without character!")
			 obj.prokey.focus();
			 obj.prokey.value="";
			 return false;
			}
		 }
	 }*/
	 return true;
}

function openw(theurl)
{
window.open(theurl,'','width=415,height=120,top=200,left=300,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no')
}
//--> 
