
function pop_up(var1, var2, var3)
{


	if(var1 == "DVDGuide")
	{
		popup_win2 = window.open("../Content/popup_DVDGuide.aspx#" + var2, "popup2", "width=500, height=300, scrollbars, resizable=yes"); 
	}
	
	if(var1 == "shipping")
	{
		popup_win2 = window.open("ShippingSelector.aspx", "popup2", "width=450, height=360, scrollbars, resizable=No"); 
	}

	if(var1 == "CVD")
	{
		popup_win2 = window.open("../Content/Popup_CVD.aspx", "popup2", "width=450, height=360, scrollbars, resizable=No"); 
	}
	
	if(var1 == "safeshopping")
	{
		popup_win2 = window.open("../Content/Popup_SafeShopping.aspx", "popup2", "width=450, height=360, scrollbars, resizable=No"); 
	}
	
	if(var1 == "returns")
	{
		popup_win2 = window.open("../Content/Popup_Returns.aspx", "popup2", "width=450, height=360, scrollbars, resizable=No"); 
	}
		
	if(var1 == "privacy")
	{
		popup_win2 = window.open("../Content/Popup_Privacy.aspx", "popup2", "width=450, height=360, scrollbars, resizable=No"); 
	}
	
	if(var1 == "freeshipping")
	{
		popup_win2 = window.open(var2 + "/Content/Popup_Shipping.aspx", "popup2", "width=400, height=300, scrollbars, resizable=yes"); 
	}
	
	if(var1 == "shippingtimes")
	{
		popup_win2 = window.open(var2 + "/Content/Popup_ShippingTimes.aspx", "popup2", "width=500, height=250, scrollbars, resizable=yes"); 
	}

	if(var1 == "Actor")
	{
		popup_win2 = window.open(var2 + "/RussianKeyboard.aspx?From=Actor", "popup2", "width=436, height=220, scrollbars, resizable=no"); 
	}
	if(var1 == "Title")
	{
		popup_win2 = window.open(var2 + "/RussianKeyboard.aspx?From=Title", "popup2", "width=436, height=220, scrollbars, resizable=no"); 
	}
	if(var1 == "Director")
	{
		popup_win2 = window.open(var2 + "/RussianKeyboard.aspx?From=Director", "popup2", "width=436, height=220, scrollbars, resizable=no"); 
	}
	if(var1 == "SideNav")
	{
		popup_win2 = window.open(var2 + "/RussianKeyboard.aspx?From=SideNav", "popup2", "width=436, height=220, scrollbars, resizable=no"); 
	}
}


function validate_fields(theForm)
        {
                var strMessage, blnEmpty;
                strMessage = "Please enter the following fields: \n";
                blnEmpty = false;

                if(theForm.txtName.value == null || theForm.txtName.value == "")
                        { blnEmpty = true; strMessage = strMessage + " - Full Name\n"; }

                if(theForm.txtEmail.value == null || theForm.txtEmail.value == "")
                        { blnEmpty = true; strMessage = strMessage + " - Email Address\n"; }

                if(theForm.txtPhone.value == null || theForm.txtPhone.value == "")
                        { blnEmpty = true; strMessage = strMessage + " - Phone Number\n"; }

                if(theForm.txtMessage.value == null || theForm.txtMessage.value == "")
                        { blnEmpty = true; strMessage = strMessage + " - Your Message\n"; }


                if(blnEmpty)
                {  alert(strMessage); return (false); }
                else
                {  return (true); }
        }
		






function isEmailAddr(email)
{
	var result = false
	var theStr = new String(email)
	var index = theStr.indexOf("@");
	if (index > 0)
	{
		var pindex = theStr.indexOf(".",index);
		if ((pindex > index+1) && (theStr.length > pindex+1))
		result = true;
	}
	return result;
}

