// JavaScript Document
function roll_over(img_name, img1, mtype)
   {
   if(mtype==1) {
      document[img_name].src=img1;
   }
    else if(mtype==0) {
      document[img_name].src='/images/blank_desc.gif';
   }
}
function flippic(imgsrc,mtype) {
   	if (mtype==1) {
   		document[imgsrc].src='/images/bullet.gif';
   	} else {
   		document[imgsrc].src='/images/bulletlight.gif';
   	}
}
function swappic(imgsrc,iname) {
   		document[imgsrc].src=iname;
}
function chgemltxt() {
	if (document.getElementById("awf_field-2292950").value=="Enter Email Address Here") document.getElementById("awf_field-2292950").value="";
}
function chgemltxt1() {
   		if (document.getElementById("awf_field-2292950").value=="") document.getElementById("awf_field-2292950").value="Enter Email Address Here";
}
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 roll(img_name,img_src) {
      document[img_name].src=img_src;
 }
MM_preloadImages('/images/home1.gif','/images/rings1.gif','/images/3stone.gif','/images/designer1.gif','/images/fancy1.gif','/images/solitaires1.gif','/images/wedding1.gif','/images/baguette1.gif','/images/asscher1.gif','/images/earrings1.gif','/images/studearrings1.gif','/images/dropearrings1.gif','/images/hoopearrings1.gif','/images/dressyearrings1.gif','/images/pendants1.gif','/images/dressypendants1.gif','/images/classicpendants1.gif','/images/necklace1.gif','/images/neck1.gif','/images/bracelets1.gif','/images/brace1.gif','/images/brooches1.gif','/images/broo1.gif','/images/pearls.gif','/images/pearlrings1.gif','/images/pearlerrings1.gif','/images/pearlpen1.gif','/images/pearlneck1.gif','/images/platinum1.gif','/images/prings1.gif','/images/engage.gif','/images/engage1.gif','/images/wedsets.gif','/images/wedsets1.gif');
window.name="main";
var bIsNC4 = (navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4);
var bIsIE4 = (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 );
var bIsSupportOK = bIsNC4 || bIsIE4;

var nMaxItem = 4;
var NameIndex = 0;
var DefaultState = 1;
var MouseOverState = 2;
var MouseDownState = 3;
	
var imgCounter = 0;
var ImageList = new Array();
var bufferArray = new Array();
var errorArray = new Array();

function AddImageToImageList(name, Default, MouseOver, MouseDown) {
		ImageList[imgCounter] = new Array(nMaxItem);
		ImageList[imgCounter][NameIndex] = name;
		ImageList[imgCounter][DefaultState] = new Image();
		ImageList[imgCounter][DefaultState].src = Default;
		if (MouseOver != "") {
			ImageList[imgCounter][MouseOverState] = new Image();
			ImageList[imgCounter][MouseOverState].src = MouseOver;
		}
		if (MouseDown != "") {
			ImageList[imgCounter][MouseDownState] = new Image();
			ImageList[imgCounter][MouseDownState].src = MouseDown;
		}
	
		imgCounter++;
}
	
function ReplaceImage(name, state) {
		if (bIsSupportOK) {
			for (i = 0; i < imgCounter; i++) {
				if (document.images[ImageList[i][NameIndex]] != null) {
					if ((name == ImageList[i][NameIndex]) && (ImageList[i][state] != null))
						document.images[name].src = ImageList[i][state].src;
				}
			}
		}
}
function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}
function submitForm(){
   document.email_form.submit();
   return true;
}
function upditem(mordit,cordno)
   {
   var w = document.ppform.elements[mordit].selectedIndex;
   var mval = document.ppform.elements[mordit].options[w].value;
   window.location='updshipc.asp?ship='+mval+'&ordno='+cordno;
   }
   function check_form(mform) {
   		var mship = document.OrdForm.elements["Shipping"].value;
		var mctype = document.OrdForm.elements["CardType"].value;
		var mcname = document.OrdForm.elements["CreditCardName"].value;
		var mcno = document.OrdForm.elements["CreditCardNo"].value;
		var mexpmonth = document.OrdForm.elements["ExpMonth"].value;
		var mexyear = document.OrdForm.elements["ExpYear"].value;
		var merror = "";
		if (mcname.length==0) merror = merror + "**Enter Credit Card Holder Name\n";
		if (mctype.length==0) merror = merror + "**Select Card Type\n";
		if (mcno.length==0) merror = merror + "**Enter Credit Card No.\n";
		if ((mexpmonth=="0") || (mexyear=="0")) merror = merror + "**Select Expiry Date\n";
		if (merror=="") {
			return true;
		} else {
			alert(merror);
			return false;
		}
   }
function loadDetailRollover(id,URL){
	bufferArray[id]=new Image();
	bufferArray[id].src=URL;
	document.write('<div style="visibility:hidden; display:block; position:absolute; left:0px; top:0px">');
	document.write(' <img src="'+URL+'" width="0" height="0" onError="isBad('+id+')" onLoad="isGood('+id+')"> ');
	document.write('</div>');
}

function isGood(id) {errorArray[id] = 0}
function isBad(id)	{errorArray[id] = 1}

//Highlight Borders
var thumbnailDir = '/images/'
var thumbnailFileName = '_HTML_MED_OVER.jpg'

function Zoom(id,sku) {
	if(errorArray[id]==0) {
		//preload sucessful
		thumbnailFileName = '(1).jpg'
	}
	else if(errorArray[id]==1) {
		//Image doesn't exist so revert to default version.
		thumbnailFileName = '.gif'
	}
	else {
		//Retrieve image since preload hasn't occured
		ondemadRequestImage(id,sku);
		return;
	}
	MM_swapImage('ht'+id,'','/images/highlight.gif',
	'hl'+id,'','/images/highlight.gif',
	'hr'+id,'','/images/highlight.gif',
	'hb'+id,'','/images/highlight.gif',
	'thumb'+id,'',thumbnailDir+sku+thumbnailFileName,1)
}
var countThumbnails = 0;
var arrayThumbnailSKUS = new Array();
var blnTestThumbnail = true

function preloadDetailRollover(){
	//determine how many thumbnails we really are displaying.
	thumbID=0;
	while (blnTestThumbnail) {
		testImage="thumb"+thumbID;
		testThumbnail(testImage)
	}

	// Preload each thumbnail
	for (j=0; j<countThumbnails; j++) {
		loadDetailRollover(j,thumbnailDir+arrayThumbnailSKUS[j]+"_HTML_MED_OVER.jpg");	
	}
}

function testThumbnail(testImage) {
	if(document.images[testImage]){
		countThumbnails = countThumbnails + 1;
		imageSource = document.images[testImage].src.toLowerCase();
		arrayThumbnailSKUS[thumbID] = imageSource.substring(imageSource.indexOf("/product_images/")+16,imageSource.indexOf("_html_med"))
		thumbID = thumbID + 1;
	}
	else {blnTestThumbnail = false}
}

//Check image ondemand
var bufferImage = new Image();
bufferImage.onload = showEvent;
bufferImage.onerror = errorEvent;

var bufferID;
var bufferSKU;
var URL

function ondemadRequestImage(id,sku) {
	bufferID = id;
	bufferSKU = sku;
	URL=thumbnailDir+sku+thumbnailFileName
	bufferImage.src = URL;
}

function showEvent() {
	//set error to false
	errorArray[bufferID] = 0
	//initiate highlighting function
	Zoom(bufferID,bufferSKU);

}

function errorEvent() {
	//set error to true
	errorArray[bufferID] = 1
	//initiate highlighting function
	Zoom(bufferID,bufferSKU);
}
function opacity(id, opacStart, opacEnd, millisec) { 
    //speed for each frame 
    var speed = Math.round(millisec / 100); 
    var timer = 0; 

    //determine the direction for the blending, if start and end are the same nothing happens 
    if(opacStart > opacEnd) { 
        for(i = opacStart; i >= opacEnd; i--) { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } else if(opacStart < opacEnd) { 
        for(i = opacStart; i <= opacEnd; i++) 
            { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } 
} 

//change the opacity for different browsers 
function changeOpac(opacity, id) { 
    var object = document.getElementById(id).style; 
    object.opacity = (opacity / 100); 
    object.MozOpacity = (opacity / 100); 
    object.KhtmlOpacity = (opacity / 100); 
    object.filter = "alpha(opacity=" + opacity + ")"; 
}
function Add_A_Favorite() {

 title = "Webpage Title"; 
  // Blogger - Replace with <$BlogItemTitle$> 
  // MovableType - Replace with <$MTEntryTitle$>

 url = "Webpage URL";
  // Blogger - Replace with <$BlogItemPermalinkURL$> 
  // MovableType - Replace with <$MTEntryPermalink$>
  // WordPress - <?php bloginfo('url'); ?>

	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		return true; }
}
function updshipmethod()   {
   var mval = document.getElementById('shipmethod').value;
   window.location='updshipm.asp?ship='+mval;
}
function CheckShip() {
	if((document.ppform.shipmethod.value=="") || (document.ppform.shipmethod.value=="0")){
			window.alert('Select Shipping Method!');
			document.ppform.shipmethod.focus();
			return false;
	}
}
function updpromo() {
	var mprcode = document.getElementById("prcode").value;
	 window.location='uppromo.asp?prcode='+mprcode;
}

<!--
	var bIsNC4 = (navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4);
	var bIsIE4 = (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 );
	var bIsSupportOK = bIsNC4 || bIsIE4;
	
	var nMaxItem = 4;
	var NameIndex = 0;
	var DefaultState = 1;
	var MouseOverState = 2;
	var MouseDownState = 3;
	
	var imgCounter = 0;
	var ImageList = new Array();
	
	function AddImageToImageList(name, Default, MouseOver, MouseDown)
	{
		ImageList[imgCounter] = new Array(nMaxItem);
		ImageList[imgCounter][NameIndex] = name;
		ImageList[imgCounter][DefaultState] = new Image();
		ImageList[imgCounter][DefaultState].src = Default;
		if (MouseOver != "") {
			ImageList[imgCounter][MouseOverState] = new Image();
			ImageList[imgCounter][MouseOverState].src = MouseOver;
		}
		if (MouseDown != "") {
			ImageList[imgCounter][MouseDownState] = new Image();
			ImageList[imgCounter][MouseDownState].src = MouseDown;
		}
	
		imgCounter++;
	}
	
	function ReplaceImage(name, state)
	{
		if (bIsSupportOK) {
			for (i = 0; i < imgCounter; i++) {
				if (document.images[ImageList[i][NameIndex]] != null) {
					if ((name == ImageList[i][NameIndex]) && (ImageList[i][state] != null))
						document.images[name].src = ImageList[i][state].src;
				}
			}
		}
	}
	AddImageToImageList("rollover0", "/images/mnu_rings.png", "/images/mnu_rings1.png", "");
	AddImageToImageList("rollover1", "/images/mnu_earrings.png", "/images/mnu_earrings1.png", "");
	AddImageToImageList("rollover2", "/images/mnu_bracelets.png", "/images/mnu_bracelets1.png", "");
	AddImageToImageList("rollover3", "/images/mnu_pendants.png", "/images/mnu_pendants1.png", "");
	AddImageToImageList("rollover4", "/images/mnu_search.png", "/images/mnu_search1.png", "");//#
	AddImageToImageList("rollover5", "/images/mnu_shopbasket.png", "/images/mnu_shopbasket1.png", "");//#
	AddImageToImageList("rollover6", "/images/mnu_aboutus.gif", "/images/mnu_aboutus1.gif", "");//#
	AddImageToImageList("rollover7", "/images/mnu_custservice.png", "/images/mnu_custservice1.png", "");//#
	AddImageToImageList("rollover8", "/images/mnu_secshop.gif", "/images/mnu_secshop1.gif", "");
	AddImageToImageList("rollover9", "/images/mnu_faq.png", "/images/mnu_faq1.png", "");//#
	AddImageToImageList("rollover10", "/images/arrow_right.gif", "/images/arrow_right_over.gif", "");
	AddImageToImageList("rollover11", "/images/arrow_left.gif", "/images/arrow_left_over.gif", "");
	AddImageToImageList("rollover12", "/images/mnu_legend.gif", "/images/mnu_legend1.gif", "");
	AddImageToImageList("rollover13", "/images/mnu_newab.gif", "/images/mnu_newab1.gif", "");
	AddImageToImageList("rollover14", "/images/mnu_engring.gif", "/images/mnu_engring1.gif", "");
	AddImageToImageList("rollover15", "/images/mnu_certauth.gif", "/images/mnu_certauth1.gif", "");
	AddImageToImageList("rollover16", "/images/mnu_policies.png", "/images/mnu_policies1.png", "");//#
	AddImageToImageList("rollover17", "/images/mnu_necklaces.png", "/images/mnu_necklaces1.png", "");//#
	AddImageToImageList("rollover15", "/images/mnu_certauthy.gif", "/images/mnu_certauthy_over.gif", "");
	AddImageToImageList("rollover40", "/images/mnu_testi.png", "/images/mnu_testi1.png", "");//#
	AddImageToImageList("rollover42", "/images/mnu_contact.png", "/images/mnu_contact1.png", "");//#
	AddImageToImageList("rollover131", "/images/cancel_off.gif", "/images/cancel_over.gif", "");
	AddImageToImageList("rollover141", "/images/save_address.gif", "/images/save_address_over.gif", "");
	AddImageToImageList("rollover10x1", "/images/create_new_account_off.gif", "/images/create_new_account_over.gif", "");
	AddImageToImageList("rollover11x1", "/images/sign_in_off.gif", "/images/sign_in_over.gif", "");
	AddImageToImageList("rollover12x1", "/images/back_to_shopping_off.gif", "/images/back_to_shopping_over.gif", "");
	AddImageToImageList("rollover15x1", "/images/delete_item.gif", "/images/delete_item_over.gif", "");
	AddImageToImageList("rollover16x1", "/images/proceed_to_purchase_off.gif", "/images/proceed_to_purchase_over.gif", "");
	AddImageToImageList("rollover41", "/images/mnu_videos.png", "/images/mnu_videos1.png", "");
	AddImageToImageList("rollover15x", "/images/mnu_brooches.png", "/images/mnu_brooches1.png", "");
	AddImageToImageList("rollover16x", "/images/mnu_pearls.png", "/images/mnu_pearls1.png", "");
	//-->
	
	
var bufferArray = new Array();
var errorArray = new Array();

function roll_over(img_name, mtype)
   {
   if(mtype==1) {
      document[img_name].hspace = 0;
      document[img_name].vspace = 0;
      document[img_name].width = 142;
      document[img_name].height = 142;
      document[img_name].style.border = '1 solid #50A19A';
      document.itemimg.src='/images/item_desc.gif';
   }
    else if(mtype==0) {
      document[img_name].hspace = 24;
      document[img_name].vspace = 24;
      document[img_name].width = 96;
      document[img_name].height = 96;
      document[img_name].style.border = '';
      document.itemimg.src='/images/blank_desc.gif';
   }
   }

//Preload Rollover Images in hidden layer and flag images that failed to load based on events of IMG.
function loadDetailRollover(id,URL){
	bufferArray[id]=new Image();
	bufferArray[id].src=URL;
	document.write('<div style="visibility:hidden; display:block; position:absolute; left:0px; top:0px">');
	document.write(' <img src="'+URL+'" width="0" height="0" onError="isBad('+id+')" onLoad="isGood('+id+')"> ');
	document.write('</div>');
}

function isGood(id) {errorArray[id] = 0}
function isBad(id)	{errorArray[id] = 1}

//Highlight Borders
var thumbnailDir = '/images/'
var thumbnailFileName = '_HTML_MED_OVER.jpg'

function Zoom(id,sku) {
	if(errorArray[id]==0) {
		//preload sucessful
		thumbnailFileName = '(1).jpg'
	}
	else if(errorArray[id]==1) {
		//Image doesn't exist so revert to default version.
		thumbnailFileName = '.gif'
	}
	else {
		//Retrieve image since preload hasn't occured
		ondemadRequestImage(id,sku);
		return;
	}
	MM_swapImage('ht'+id,'','/images/highlight.gif',
	'hl'+id,'','/images/highlight.gif',
	'hr'+id,'','/images/highlight.gif',
	'hb'+id,'','/images/highlight.gif',
	'thumb'+id,'',thumbnailDir+sku+thumbnailFileName,1)
}
var countThumbnails = 0;
var arrayThumbnailSKUS = new Array();
var blnTestThumbnail = true

function preloadDetailRollover(){
	//determine how many thumbnails we really are displaying.
	thumbID=0;
	while (blnTestThumbnail) {
		testImage="thumb"+thumbID;
		testThumbnail(testImage)
	}

	// Preload each thumbnail
	for (j=0; j<countThumbnails; j++) {
		loadDetailRollover(j,thumbnailDir+arrayThumbnailSKUS[j]+"_HTML_MED_OVER.jpg");	
	}
}

function testThumbnail(testImage) {
	if(document.images[testImage]){
		countThumbnails = countThumbnails + 1;
		imageSource = document.images[testImage].src.toLowerCase();
		arrayThumbnailSKUS[thumbID] = imageSource.substring(imageSource.indexOf("/product_images/")+16,imageSource.indexOf("_html_med"))
		thumbID = thumbID + 1;
	}
	else {blnTestThumbnail = false}
}

//Check image ondemand
var bufferImage = new Image();
bufferImage.onload = showEvent;
bufferImage.onerror = errorEvent;

var bufferID;
var bufferSKU;
var URL

function ondemadRequestImage(id,sku) {
	bufferID = id;
	bufferSKU = sku;
	URL=thumbnailDir+sku+thumbnailFileName
	bufferImage.src = URL;
}

function showEvent() {
	//set error to false
	errorArray[bufferID] = 0
	//initiate highlighting function
	Zoom(bufferID,bufferSKU);

}

function errorEvent() {
	//set error to true
	errorArray[bufferID] = 1
	//initiate highlighting function
	Zoom(bufferID,bufferSKU);
}

 function chgemltxt() {
   		if (document.getElementById("email").value=="Enter Email Address Here") document.getElementById("email").value="";
	}
   function chgemltxt1() {
   		if (document.getElementById("email").value=="") document.getElementById("email").value="Enter Email Address Here";
	}
	
	 function flippic(imgsrc,mtype) {
   	if (mtype==1) {
   		document[imgsrc].src='/images/bullet.gif';
   	} else {
   		document[imgsrc].src='/images/bulletlight.gif';
   	}
   }
   function swappic(imgsrc,iname) {
   		document[imgsrc].src=iname;
   }
   function chgemltxt() {
   		if (document.getElementById("awf_field-2292950").value=="Enter Email Address Here") document.getElementById("awf_field-2292950").value="";
	}
   function chgemltxt1() {
   		if (document.getElementById("awf_field-2292950").value=="") document.getElementById("awf_field-2292950").value="Enter Email Address Here";
	}

function updships() {
	if (document.OrderForm.samebill.checked==true) {
	document.OrderForm.stitle.value = document.OrderForm.title.value;
	document.OrderForm.sfName.value = document.OrderForm.fName.value;
	document.OrderForm.slName.value = document.OrderForm.lName.value;
	document.OrderForm.scompname.value = document.OrderForm.compname.value;
	document.OrderForm.saddress1.value = document.OrderForm.address1.value;
	document.OrderForm.scity.value = document.OrderForm.city.value;
	document.OrderForm.sstate.value = document.OrderForm.state.value;
	document.OrderForm.szipCode1.value = document.OrderForm.zipCode1.value;
	document.OrderForm.szipCode2.value = document.OrderForm.zipCode2.value;
	document.OrderForm.stelephone1.value = document.OrderForm.telephone1.value;
	document.OrderForm.stelephone2.value = document.OrderForm.telephone2.value;
	document.OrderForm.stelephone3.value = document.OrderForm.telephone3.value;
	}
}
	function CustCheck() {
		if((document.ppform.shipmethod.value=="") || (document.ppform.shipmethod.value=="0"))
		{
			window.alert('Select Shipping Method!');
			document.ppform.shipmethod.focus();
			return false;
		}
		if (document.OrderForm.fName.value=="")
		{
			window.alert('Enter First Name!');
			document.OrderForm.fName.focus();
			return false;
		}
		if (document.OrderForm.lName.value=="")
		{
			window.alert('Enter Last Name!');
			document.OrderForm.lName.focus();
			return false;
		}
		if (document.OrderForm.email.value=="")
		{
			window.alert('Enter Email Address!');
			document.OrderForm.email.focus();
			return false;
		}
		if (document.OrderForm.pass1.value=="")
		{
			window.alert('Enter A Password!');
			document.OrderForm.pass1.focus();
			return false;
		}
		if (document.OrderForm.address1.value=="")
		{
			window.alert('Enter Address!');
			document.OrderForm.address1.focus();
			return false;
		}
		if (document.OrderForm.city.value=="")
		{
			window.alert('Enter City!');
			document.OrderForm.city.focus();
			return false;
		}
		if (document.OrderForm.state.value=="")
		{
			window.alert('Enter State!');
			document.OrderForm.state.focus();
			return false;
		}
		if (document.OrderForm.zipCode1.value=="")
		{
			window.alert('Enter Zip!');
			document.OrderForm.zipCode1.focus();
			return false;
		}
		if (document.OrderForm.telephone1.value=="")
		{
			window.alert('Enter Proper Telephone #!');
			document.OrderForm.telephone1.focus();
			return false;
		}
		if (document.OrderForm.telephone2.value=="")
		{
			window.alert('Enter Proper Telephone #!');
			document.OrderForm.telephone2.focus();
			return false;
		}
		if (document.OrderForm.telephone3.value=="")
		{
			window.alert('Enter Proper Telephone #!');
			document.OrderForm.telephone3.focus();
			return false;
		}
		if (document.OrderForm.sfName.value=="")
		{
			window.alert('Enter Shipping First Name!');
			document.OrderForm.sfName.focus();
			return false;
		}
		if (document.OrderForm.slName.value=="")
		{
			window.alert('Enter Shipping Last Name!');
			document.OrderForm.slName.focus();
			return false;
		}
		if (document.OrderForm.saddress1.value=="")
		{
			window.alert('Enter Shipping Address!');
			document.OrderForm.saddress1.focus();
			return false;
		}
		if (document.OrderForm.scity.value=="")
		{
			window.alert('Enter Shipping City!');
			document.OrderForm.scity.focus();
			return false;
		}
		if (document.OrderForm.sstate.value=="")
		{
			window.alert('Enter Shipping State!');
			document.OrderForm.sstate.focus();
			return false;
		}
		if (document.OrderForm.szipCode1.value=="")
		{
			window.alert('Enter Shipping Zip!');
			document.OrderForm.szipCode1.focus();
			return false;
		}
		if (document.OrderForm.CardType.value=="")
		{
			window.alert('Enter Card Type!');
			document.OrderForm.CardType.focus();
			return false;
		}
		if (document.OrderForm.CreditCardNo.value=="")
		{
			window.alert('Enter Credit Card #!');
			document.OrderForm.CreditCardNo.focus();
			return false;
		}
		if (document.OrderForm.CreditCardName.value=="")
		{
			window.alert('Enter Credit Card Holder Name!');
			document.OrderForm.CreditCardName.focus();
			return false;
		}
		if (document.OrderForm.CCV.value=="")
		{
			window.alert('Enter CVV #!');
			document.OrderForm.CCV.focus();
			return false;
		}
		if (document.OrderForm.ExpMonth.value=="0")
		{
			window.alert('Enter Expiry Month!');
			document.OrderForm.ExpMonth.focus();
			return false;
		}
		if (document.OrderForm.ExpYear.value=="0")
		{
			window.alert('Enter Expiry Year!');
			document.OrderForm.ExpYear.focus();
			return false;
		}
	}
	
	
	mwdth=350;
var i=0;
function resize() {
  if (navigator.appName == 'Netscape') i=40;
  if (document.zoomimg) {
	if (document.zoomimg.width < 350) {
		mwdth = 350;
	}
	else {
		mwdth = document.zoomimg.width;
	}
	window.resizeTo(mwdth +75, document.zoomimg.height+160-i);
	leftVal = (screen.width - (mwdth +75)) / 2;
	topVal = (screen.height - (document.zoomimg.height+160-i)) / 2;
	self.moveTo(leftVal , topVal);
  }

  self.focus();
}
			var avenir = {
				src: '/test.swf'
			};
			
			sIFR.activate(avenir);
			
			sIFR.replace(avenir, {
				selector: '.title',
				wmode: 'transparent'
			});
	  


