document.write('');
var server = "content-submit.cricinfo.com";
/* Login Valdation */
//----------------------------------------------------------
// create cookie
//----------------------------------------------------------
function setCookie( name, value, expires, path, domain, secure ) {
var today = new Date();
today.setTime( today.getTime() );
if ( expires ) {
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );
document.cookie = name+'='+escape( value ) +
( ( expires ) ? ';expires='+expires_date.toGMTString() : '' ) +
( ( path ) ? ';path=' + path : '' ) +
( ( domain ) ? ';domain=' + domain : '' ) +
( ( secure ) ? ';secure' : '' );
}
//----------------------------------------------------------
// check if cookie defined
//----------------------------------------------------------
function getCookie(name) {
var start = document.cookie.indexOf( name + "=" );
var len = start + name.length + 1;
if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) {
return null;
}
if ( start == -1 ) return null;
var end = document.cookie.indexOf( ';', len );
if ( end == -1 ) end = document.cookie.length;
return unescape( document.cookie.substring( len, end ) );
}
//------------------------------------------------------------
// Remove cookie
//------------------------------------------------------------
function removeCookie( name, path, domain) {
if ( getCookie( name ) )
document.cookie = name + '=' + ( ( path ) ? ';path=' + path : '') + ( ( domain ) ? ';domain=' + domain : '' ) + ';expires=Thu, 01-Jan-1970 00:00:01 GMT';
}
//------------------------------------------------------------
// Get the domain name
//------------------------------------------------------------
function getDomainname () {
var hostname = window.location.hostname.split('.');
if ( hostname.length >= 2 ) {
var len = hostname.length;
var domainname = '.' + hostname[len - 2] + '.' + hostname[len - 1];
} else {
var domainname = '.' + window.location.hostname;
}
return domainname;
}
//------------------------------------------------------------
// Logout
//------------------------------------------------------------
function logoutUser () {
var domainname = getDomainname();
removeCookie("un" , '/', domainname );
removeCookie("CI_Pub_data" , '/' , domainname);
$('#ciMemebermgmt').html(welcome_content);
}
//-------------------------------------------------------------
// Validate search filed
//-------------------------------------------------------------
function validateData() {
if ( txt_data == "") {
window.location.href = "/ci/content/site/search.html";
return false;
}
if ( txt_data == "Search Cricinfo") {
window.location.href = "/ci/content/site/search.html";
return false;
}
return true;
}
//----------------------------------------------------------
// Login validate
//----------------------------------------------------------
function ciLoginvalidate(){
if(document.ciloginfm.email.value=="") {
alert("Please enter your email id.");
document.ciloginfm.email.focus();
document.ciloginfm.email.select();
return false;
}
var emailexp = /^([a-zA-Z0-9])([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})([a-zA-Z0-9\-\.]+))\.([a-zA-Z]{2,6}[0-9]{1,6})(\]?)$/;
if (emailexp.test(document.ciloginfm.email.value.replace(/\s/g,""))== false) {
alert("Please enter your email id.");
window.document.ciloginfm.email.focus();
document.ciloginfm.email.select();
return false;
}
if(document.ciloginfm.password.value=="") {
alert("Please enter Password.");
document.ciloginfm.password.focus();
document.ciloginfm.password.select();
return false;
}
var un = document.ciloginfm.email.value;
var pass =document.ciloginfm.password.value;
var url = 'http://' + server + '/member_mgmt/content/submit/member_mgmt/login_validate.html?callback=?';
$.getJSON( url , { email: un, password: pass },
function(msg){
if ( msg.status == 1 ) {
hideTooltip('divLoginpopup');
var welcome_user = 'Welcome ' + msg.username + '
Edit Profile Sign Out ';
$('#ciMemebermgmt').html(welcome_user);
} else {
alert (msg.message);
return false;
}
});
return false;
}
var welcome_content = 'Welcome Guest
Sign In Register';
var authcookie = getCookie("CI_Pub_data");
if ( authcookie != null ) {
var user_name = getCookie('un');
if ( user_name == null ) {
var domainname = getDomainname();
removeCookie("CI_Pub_data" , '/' , domainname);
document.write(welcome_content);
} else {
var login_content = 'Welcome ' + user_name + '';
document.write(login_content);
document.write('
Edit Profile Sign Out');
}
} else {
document.write(welcome_content);
}
Welcome Guest
Sign In RegisterHot Searches:
Bilal Shafayat The Ashes 2009 More...Sign In
x
Email
Password
Remember me
Forgot Password?SeriesSeries
CountriesCountries
Live ScoresLive ScoresFixturesFixturesResultsResultsNewsNewsFeaturesFeatures
Regulars
Highlights
Opinion
Reviews
The Short Stuff
All Time XI
Archives
PhotosPhotosBlogsBlogsStatisticsStatisticsArchiveArchive
AudioAudioVideoVideoGamesGamesMobile MobilePakistan / News
Pakistan homeNewsFeaturesPhotosFixturesResultsDomestic Competitions Domestic Competitions Domestic HistoryPlayersGroundsRecords$Launchpad.ShowButton({"userId": "47bb0191feb4e844", "widgetName": "Cricinfo Story", "useFacebookLink": "false", "bookmarkUrl": "http://www.cricinfo.com/pakistan/content/story/413726.html?cmp=viral", "source": "PutWidgetHere", "actionElement": "getButtontop", "menuWidth": 400, "menuHeight": 210, "customCSS": "http://www.cricinfo.com/navigation/cricinfo/viralshare.css", "servicesExclude": ["send"]});
Pakistan cricket
Hafeez dropped from 'A' team to tour Sri Lanka
Cricinfo staff
July 11, 2009
Text size: A A
Faisal Iqbal will lead Pakistan 'A' on their tour of Sri Lanka © AFP
Related Links-->
-->
Players/Officials:
Faisal Iqbal Mohammad HafeezTeams:
PakistanFaisal Iqbal will lead a 16-man Pakistan 'A' squad on a tour of Sri Lanka in August, interim chief selector Wasim Bari said on Friday. Iqbal is currently in Sri Lanka as part of the senior national team, as is opener Khurram Manzoor who was also named in the 'A' side.
Pakistan 'A' is currently touring Australia, and two players - captain Mohammad Hafeez and Azeem Ghumman - from that side have been left out for the matches against Sri Lanka 'A'. The tour of Australia ends on July 18, with two ODIs and a Twenty20 yet to played.
Khan Research Laboratories left-arm spinner Nayyer Abbas and Sui Northern Gas Pipelines Limited legspinner Yasir Shah are the two newcomers in the side to visit Sri Lanka, after failing to make the cut for the Australia trip.
In Sri Lanka, the 'A' team will play two four-day games and five ODIs from August 2 to August 28.
Squad: Khalid Latif, Umar Amin, Azhar Ali, Khurram Manzoor, Umar Akmal, Faisal Iqbal (capt), Fahad Iqbal, Sheharyar Ghani, Sarfraz Ahmed (wk), Mohammad Talha, Fahad Masood, Wahab Riaz, Abdul Rehman, Yasir Shah, Naved Arif, Nayyar Abbas.