﻿// JScript File

function redirectToRegister(prevURL)
{

    if(prevURL== "undefined" || prevURL=="")
    {
      //  window.location.href="http://www.m2mpremier.com/login.aspx";    
      window.location.href="login.aspx";
      }
    else   
       // window.location.href="http://www.m2mpremier.com/login.aspx?retURL="+prevURL;
       {
       window.location.href="login.aspx?retURL="+prevURL;
       }
}
function redirectToRegister1(prevURL)
{
    if(prevURL== "undefined" || prevURL=="")
      {       
       window.opener.location.href="login.aspx";
       self.close();
      }
    else  
       {
        window.opener.location.href="login.aspx?retURL="+prevURL;
        self.close();
       }
}
function openWindow() {
 //alert("hi")
popupWin=window.open('Popup_Login.aspx','popup','width=400,height=300,left=200,top=200')
}

function openPreviewWindow(url)
{
    window.open(url,null,'width=820,height=700,status=yes,toolbar=no,menubar=no,scrollbars=yes,location=no');
}

