function confirmproductViewLogin()
{
	if (confirm('Please login your  Account for view this product details. If you want to go login page, click ok')) {
		window.location.href = 'index.php';
	}
}




function forumPopup(mylink, windowname)
	{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
   href=mylink.href;
	window.open(href, windowname, 'width=650,height=400,scrollbars=yes,toolbar=no,resizable=no,menubar=no');
	return false;
	}




function SwapPassword()
    {
	    var tfPassword = GetPageElement("Password");
	    var tfPasswordPlace = GetPageElement("PasswordPlace");

        tfPasswordPlace.style.display = "none";
        tfPassword.style.display = "";
        tfPassword.focus();
    }
    
    function SwapUsername()
    {
	    var tfUserName = GetPageElement("Username");
	    var tfUsernamePlace = GetPageElement("UsernamePlace");

        tfUsernamePlace.style.display = "none";
        tfUserName.style.display = "";
        tfUserName.focus();
    }     
    
    function SwapUsernamePlace()
    {
	    var tfUserName = GetPageElement("Username");
	    var tfUsernamePlace = GetPageElement("UsernamePlace");
	    
        if (tfUserName.value == '')
        {
            tfUsernamePlace.style.display = "";
            tfUserName.style.display = "none";
        }
    }
    
    function SwapPasswordPlace()
    {
	    var tfPassword = GetPageElement("Password");
	    var tfPasswordPlace = GetPageElement("PasswordPlace");

        if (tfPassword.value == '')
        {
            tfPasswordPlace.style.display = "";
            tfPassword.style.display = "none";
        }
    } 					


function GetPageElement(ElementName)
	{
    var ReturnElement = "";

    if (document.getElementById)
		{
        ReturnElement = "document.getElementById('" + ElementName + "')";
		}
    else if (document.all)
		{
        ReturnElement = "document.all['" + ElementName + "']";
		}
    return eval(ReturnElement);
}