function redirect(where) {
if (where == "passwordRecovery") {
location.href='forgotPassword.asp?step=1'
}
}
function changePassword(userID) {
window.open("changePassword.asp?id="+userID,"","Height=200px,Width=350px,status=no")
}
function logOut() {
window.location="logOut.asp"
}
function showStatus(which,lang) {
obj=document.getElementById("titleView")
for (i=1;i<=6;i++) {
document.getElementById("ico"+i).style.filter='alpha(opacity=70)';
if (i==which) {
document.getElementById("ico"+i).style.filter='alpha(opacity=100)';
}
}
if (lang=='en') {
if (which==1) {
obj.innerHTML='User Information'
}else if (which==2) {
obj.innerHTML='Pars Nikatel PM Box'
}else if (which==3) {
obj.innerHTML='Change Password'
}else if (which==4) {
obj.innerHTML='Support Center'
}else if (which==5) {
obj.innerHTML='Contact Us'
}else if (which==6) {
obj.innerHTML='Logout'
}
}else if (lang=='fa') {
if (which==1) {
obj.innerHTML='مشخصات کاربر'
}else if (which==2) {
obj.innerHTML='صندوق پیغامهای شخصی'
}else if (which==3) {
obj.innerHTML='تعویض کلمه عبور'
}else if (which==4) {
obj.innerHTML='مرکز پشتیبانی'
}else if (which==5) {
obj.innerHTML='تماس با ما'
}else if (which==6) {
obj.innerHTML='خروج از سیستم'
}
}
}
function getURL(url) {
if (url==1) {
location.href='myAccount.asp'
}else if (url==2) {
location.href='pmInbox.asp'
}else if (url==3) {
changePassword('<%=session("UserID")%>')
}else if (url==4) {
location.href='support.asp'
}else if (url==5) {
location.href='contactUs.asp'
}else if (url==6) {
logOut();
}
}
function selectUser() {
my=window.open("selectUser.asp","","width=450,height=300,statusbar=no,locations=no,titlebar=no,scrollbars=yes")
}



function searchWeb(which) {
switch(which) {
case 0:
document.getElementById('yahooIco').style.display="block";
document.getElementById('googleIco').style.display="none";
document.getElementById('msnIco').style.display="none";
document.getElementById('showIco').src='images/misc/yahooLogo.gif'
break;
case 1:
document.getElementById('yahooIco').style.display="none";
document.getElementById('googleIco').style.display="block";
document.getElementById('msnIco').style.display="none";
document.getElementById('showIco').src='images/misc/googleLogo.gif'
break;
case 2:
document.getElementById('yahooIco').style.display="none";
document.getElementById('googleIco').style.display="none";
document.getElementById('msnIco').style.display="block";
document.getElementById('showIco').src='images/misc/msnLogo.gif'
break;
}
}
function searchTheWeb(url) {
if (document.getElementById("showIco").src.indexOf("yahoo")!==-1) {
window.open("http://search.yahoo.com/search?p="+url)
}else if (document.getElementById("showIco").src.indexOf("google")!==-1) {
window.open("http://www.google.com/search?q="+url)
}else if (document.getElementById("showIco").src.indexOf("msn")!==-1) {
window.open("http://search.msn.com/results.aspx?q="+url)
}
}
